- 博客(7)
- 收藏
- 关注
原创 Python Pandas DataFrame.columns用法及代碼示例
Pandas DataFrame是帶有標簽軸(行和列)的二維大小可變的,可能是異構的表格數據結構。算術運算在行和列標簽上對齊。可以將其視為Series對象的dict-like容器。這是 Pandas 的主要數據結構。
2022-07-27 15:02:46
2129
原创 numpy.random.random_sample用法(python numpy库)
numpy.random.random_sample用法(python numpy库)
2022-07-16 20:37:19
4978
原创 下面程序的功能是删除字符串中第一次出现的a字符。
#include <stdio.h>#include <string.h>int fun(char *x,int n,int t){ int i,k=0; x[n]='a';x[n+1]='\0'; while(x[k]!='a') k++; if(k==n) //如果a出现的位置是最后人为改动处的a { t=0; return t ; } else //如果a出..
2022-04-26 22:57:03
2514
1
原创 用异常处理改编猜数游戏程序
用异常处理改编猜数游戏程序,功能是:允许用户反复输入数,直至猜中程序选定的数(假定为100)。输入的数如果大于选定的数,则提示"larger than expected";如果小于选定的数,则提示"less than expected";如果用户输入的不是整数,则提示"input error";如果等于选定的数,则输出"you have tried N times, you win"并结束程序。【输入形式】一次或多次输入整数【输出形式】对于每一次输入,新起一行输出对于猜数结果的提示。【样例输
2022-03-28 15:14:46
3600
原创 C二维数组
从键盘输入某年某月(包括闰年),编程输出该年的该月拥有的天数。**输入格式要求:"%d,%d" 提示信息:"Input year,month:" "The number of days is %d\n"**输出格式要求:"%d"程序运行示例1如下:Input year,month:1984,2The number of days is 29程序运行示例2如下:Input year,month:2000,2The number of days is 29程序运行示例3如下:Input y.
2022-03-15 22:10:18
89
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人