题目
A.the first number is: 80 the second number is: 150
B.the first number is: 80 the second number is: 150
C.the first number is: the second number is:
D.the first number is: 80 the second number is:
第1题
A.the first number is: 80 the second number is: 150
B.the first number is: 80 the second number is: 150
C.the first number is: the second number is:
D.the first number is: 80 the second number is:
第2题
A.执行代码时,从键盘键入"a.txt",则a.txt被创建
B.fo.writelines(ls)将ls列表中的全部字符串写入文件
C.代码主要功能为向文件写入一个列表中的字符串,并打印输出结果
D.fo.seek(0)这行代码如果省略,也能打印输出文件内容
第6题
A.以下代码的输出结果为8。 s = {8,16,9,10,5} ls = list(s) ls.sort() print(ls[1])
B.以下代码的输出结果为16。 s = {8,16,9,10,5} print(s[1])
C.以下代码的输出结果为5。 s = {8,16,5,10,5} print(len(s))
D.以下代码的输出结果为{5,8,9,10,16}。 s = {8,16,9,10,5} s.sort() print(s)
第7题
A.以下代码的输出结果为8。 s = {8,16,9,10,5} ls = list(s) ls.sort() print(ls[1])
B.以下代码的输出结果为16。 s = {8,16,9,10,5} print(s[1])
C.以下代码的输出结果为5。 s = {8,16,5,10,5} print(len(s))
D.以下代码的输出结果为{5,8,9,10,16}。 s = {8,16,9,10,5} s.sort() print(s)
第8题
A.以下代码的输出结果为8。 s = {8,16,9,10,5} ls = list(s) ls.sort() print(ls[1])
B.以下代码的输出结果为16。 s = {8,16,9,10,5} print(s[1])
C.以下代码的输出结果为5。 s = {8,16,5,10,5} print(len(s))
D.以下代码的输出结果为{5,8,9,10,16}。 s = {8,16,9,10,5} s.sort() print(s)
第9题
A.以下代码的输出结果为8。 s = {8,16,9,10,5} ls = list(s) ls.sort() print(ls[1])
B.以下代码的输出结果为16。 s = {8,16,9,10,5} print(s[1])
C.以下代码的输出结果为5。 s = {8,16,5,10,5} print(len(s))
D.以下代码的输出结果为{5,8,9,10,16}。 s = {8,16,9,10,5} s.sort() print(s)
第10题
A.saveBytes(b1,"f.dat");
B.saveFiles("f.dat",b1);
C.saveBytes("f.dat",b1);
D.saveFiles(b1,"f.dat");
第11题
A.print("Hello world!")
B.print("Hello","world!")
C.print("Hello") print("world!")
D.print("Hello", end=' ') print("world!")
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!