题目
A.cpro
B.cprog
C.progr
D.cprogram
第2题
A.Simple is better than complex
B.Life is short, you need Python
C.you need Python
D.输出为空
第3题
#include<stdio.h>
main()
(FILE *fr;char str[40];
…
fgets(str,5,fr);
printf("%s\n",str);
fclose(fr);
}
第4题
A.Life is short, you need Python.
B.you need Python.
C.Simple is better than complex.
D.输出为空。
第5题
A.Python中的同一种序列互相之间可以进行比较,按照字典序进行排序,例如 (1, 2, 3, 4) < (1, 2, 4) 的运算结果是True。
B.字符串的格式化,'{:.2f}'.format(math.pi) 与 '%.2f' % math.pi 在运算结果上相同。
C.打开一个文本文件,再对其进行读取,f = open('test.txt', 'r+'); f.read() ;read函数内不带参数是读取整个文本文件内容并返回。
D.打开一个文本文件,f = open('test.txt', 'r+'); 则 f.seek(5) 表示在打开的文件里寻找数字5。
第6题
A.Life is short, you need Python.
B.you need Python.
C.Simple is better than complex.
D.输出为空。
第7题
A.Life is short, you need Python.
B.you need Python.
C.Simple is better than complex.
D.输出为空。
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!