题解列表
Py2761-Hello, World!的大小
摘要:解题思路:注意事项:参考代码:fromctypesimport*a=create_string_buffer(b"Hello,……
Py2796-输入输出练习之浮点数专题
摘要:解题思路:注意事项:参考代码:n=float(input())print(f'{n:f}\n{n:.5f}\n{n:e}\n{n:g}')……
2878:计算矩阵边缘元素之和
摘要:解题思路:注意事项:参考代码:一:比较笨的方法#include<stdio.h>int main(){ int arr[100][100]; &nbs……
2876:矩阵交换行
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int arr[5][5]={}; for(in……
1029:自定义函数处理素数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ void IsPrime(int n); int num; scanf(&……
就是数字有点大,我用的long 和%ld
摘要:解题思路:注意事项: 这里我用的是long 用int 的话在后面数值越来越大,会超出int的限定值,从而变成负数。还有要用%ld别搞错了参考代码:#……
Py2795-财务管理--两行解决
摘要:解题思路:注意事项:参考代码:n=list(float(input())for_inrange(12))print(f……
T2756-类型转换2--步骤清晰
摘要:解题思路:注意事项:参考代码:fromctypesimport*a=c_double(1.000000001)b=&nb……