题目内容
(请给出正确答案)
[主观题]
Python语句print(len({}))的结果是___________
答案
查看答案
第4题
运行以下程序,输出结果为()。s='a1b2c3d4' lst=[] n=len(s) for i in range(0,n,2): lst.append(s[i:i+2] ) print(lst[-3])
第5题
阅读以下程序,填写运行结果()。def f(n): s=str(n) result='' for i in range(0,len(s)): result=s[i]+result return result print(f(345))
第6题
A.返回字符串、列表、字典、元组等长度
B.返回字符串、列表、字典、元组等宽度
C.返回字符串、列表、字典、元组等类型
D.将字符串、列表、字典、元组等格式化
第8题
A.print("%s", "Python!")
B.“%s"& "Python!"
C."{0}".format("Python!")
D.以上都错误