3.下面代码的执行结果是( )。>>>ls = ["2020", "20.20", "Python"] >>>ls.append(2020)>>>ls.append([2020, "2020"])>>>print(ls)
A. ['2020', '20.20', 'Python', 2020, [2020, '2020']]
B. ['2020', '20.20', 'Python', 2020, 2020, '2020']
C. ['2020', '20.20', 'Python', 2020]
D. ['2020', '20.20', 'Python', 2020, ['2020']]
查看答案
2.下面代码的输出结果是( )。>>> x = 12.34>>> print(type(x))
1.以下哪个是合法的Python 标识符( )?
A. TempStr
B. if
C. 3_sum
D. a&b
5.以下程序的输出结果是 ______ 。for s in "HelloWorld": if s=="W": break print(s, end="")
4.以下程序的输出结果是 ______ 。def func(a,b): c=a**2+b b=a return ca=10b=100c=func(a,b)+aprint(a,b,c)