【单选题】下面代码的输出结果是 a = [[1,2,3], [4,5,6], [7,8,9]] s = 0 for c in a: for j in range(3): s += c[j] print(s)
【单选题】心理学家托兰斯对二战期间有过种种艰难经历的幸存者进行的调查研究发现,一个人能够生存下来的最重要的条件是()。
【单选题】下面代码的输出结果是 : for s in "HelloWorld": if s=="W": continue print(s,end="")
【单选题】文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,下面代码的输出结果是( )txt=open("book.txt","r")print(txt)txt.close()
【单选题】如果当前时间是 2018年5月1日10点10分9秒,则下面代码的输出结果是 import time print(time.strftime("%Y=%m-%d@%H>%M>%S", time.gmtime()))
【单选题】下面代码的输出结果是 s =["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2])
B.
['gold', 'pink', 'brown']
C.
['gold', 'brown', 'tomato']
D.
['gold', 'pink', 'brown', 'purple', 'tomato']
【单选题】下面代码的输出结果是 x = 0o1010 print(x)
【单选题】文件 book.txt 在当前程序所在目录内,其内容是一段文本:book,下面代码的输出结果是 txt = open("book.txt", "r") print(txt) txt.close()
【单选题】当用户输入 abc时,下面代码的输出结果是 try: n = 0 n = input("请输入一个整数: ") def pow10(n): return n**10 except: print("程序执行错误")
【单选题】下面代码的输出结果是 x=10 y=3 print(divmod(x,y))