Error
Daria·Saira
这个作者很懒,什么都没留下…
展开
-
190405_Py_practice_FOR_cycle
something interesting with ‘For cycle’ in python key point : for_cycle & break & else #求100以内所有素数之和并输出。 ...原创 2019-04-05 12:50:41 · 64 阅读 · 0 评论 -
C_190412_test5
#include<stdio.h> #include<math.h> //program_1 /*我们认为2是第一个素数,3是第二个素数,5是第三个素数,依次类推。 现在,给定两个整数n和m,0<n<=m<=200, 你的程序要计算第n个素数到第m个素数之间所有的素数的和, 包括第n个素数和第m个素数。 */ // 2 3 5 7 9 //input 2...原创 2019-04-12 15:17:31 · 134 阅读 · 0 评论 -
C_190418_array
C_190418_array error : variably modified at file scope help text 1 help text 2 1、#define LISTEN_NUM 10 /*The MAX Number Of Users*/ 2、const int LISTEN_NUM = 10; /*UserProfile Struct, to store us...原创 2019-04-18 18:16:23 · 204 阅读 · 0 评论 -
RUA!ERROR!
Error不可怕解决就是啦 (づ ̄3 ̄)づ╭❤~ Error 1 一个超级经典的错误! overflow 栈不空就遍历输出(但是仅遍历是不会导致栈空的所以是典型的while(true)error) push (s,3634); push (s,90); //typical error //hhhhhhhhh(now I'm the girl had the overflow e...原创 2019-04-20 16:21:37 · 141 阅读 · 0 评论 -
C_test7.1(array/pointer)_190505
error analyse & reflect: 1.情况分析不周全 2.学习参考程序中对"输出(待解决问题)"最小分解后处理,防止对情况不周全考虑 题目内容: 一个多项式可以表达为x的各次幂与系数乘积的和,比如: 2x6+3x5+12x3+6x+20 现在,你的程序要读入两个多项式,然后输出这两个多项式的和,也就是把对应的幂上的系数相加然后输出。 程序要处理的幂最大为100。 输入格式:...原创 2019-05-05 21:34:31 · 104 阅读 · 0 评论 -
Windows环境安装Matplotlib等package的问题及解决办法
background : 要用word cloud 0x01 安装word cloud error : 依赖两个package numpy 手动安装 pip自动安装第二个依赖包 成功安装word cloud 0x02 使用时调用Matplotlib --> error 0x03 安装Matplotlib --> learn error : lack of dependen...原创 2019-05-08 17:42:04 · 444 阅读 · 0 评论 -
Python_something/just for fun
list indices must be integers or slices, not str 列表索引 必须是 整数 或 切片,而不是str aha ! eval() space for eval() official code inp2=input() print("just out put the input:\n",inp2) print("and this is type of...原创 2019-05-19 14:39:29 · 236 阅读 · 0 评论 -
C_test8_190511
C_test8_190511 question 1 题目内容: 你的程序要读入一行文本,其中以空格分隔为若干个单词,以‘.’结束。你要输出这行文本中每个单词的长度。这里的单词与语言无关,可以包括各种符号,比如“it’s”算一个单词,长度为4。注意,行中可能出现连续的空格。 输入格式: 输入在一行中给出一行文本,以‘.’结束,结尾的句号不能计算在最后一个单词的长度内。 输出格式: 在一行中输出这...原创 2019-05-12 14:06:52 · 88 阅读 · 0 评论 -
Python_test8_Robust input_190617
conclusion complex()和complex(eval())之间的比较将能够排除非数字类型的输入。 注意:不能直接使用eval(),否则,用户可以通过输入表达式(如100**2)输入数字,与要求不同(在实际应用中带来安全隐患)。 高危函数eval() try - except / assert #coding:utf-8 ''' program2.数字的鲁棒输入 --------...原创 2019-06-17 18:53:00 · 184 阅读 · 1 评论