- 博客(4)
- 收藏
- 关注
原创 针对python向excel中写入数据调用write函数会出现Attempt to overwrite cell: sheetname=‘Sheet1’ rowx=1 colx=0的问题解决
1. 将cell_overwrite_ok=True 放入.add_sheet函数里 ,而不是放在write函数中 这就是错误示范。
2021-04-12 19:18:30
8849
2
原创 PTA(6-3):使用函数输出指定范围内的完数
首先看看题目:本题要求实现一个计算整数因子和的简单函数,并利用其实现另一个函数,输出两正整数m和n(0<m≤n≤10000)之间的所有完数。所谓完数就是该数恰好等于除自身外的因子之和。例如:6=1+2+3,其中1、2、3为6的因子。 再看看题目的格式要求: 小白的我也是经过万般努力,虽然程序上有点繁琐,但是还是实现了 #include <stdio.h> int factorsum( int number ); void PrintPN( int m, int n ); int
2020-07-09 10:49:52
3644
5
原创 C语言乘方,平方根的使用
c语言当中不能直接用x^y表示x的y次方,需要通过pow函数实现。 一.pow函数 1.pow函数的头文件math.h; 2.pow的定义:douple pow(douple x,douple y); 3.pow的调用:如x的y次方,表示为pow(x,y); 二.sqrt函数 1.头文件:math.h 2.定义:douple sqrt(douple x) 3.调用:如x的平方根 sqrt(x) 记录学习的脚步,我们一起学习吧! ...
2020-07-07 15:00:26
6380
原创 实现函数输出n行数字金字塔
#include<stdio.h> int pyramid(int n); int main() { int n; printf("请输入数字:\n"); scanf("%d",&n); pyramid(n); return 0; } int pyramid(int n) { int i,j,k; for(i=1;i<=n;i++) { for(k=n;k>=i;k--) printf...
2020-07-05 15:54:25
3586
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人