python入门每日一练,可以提高您的python水平,今天是1月10日,上一课的答案是

for n in lista:
    print(n)
  • 1.
  • 2.

今天的题目是

c="a"+123
print(c)
  • 1.
  • 2.

问:输出结果:

a.

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

TypeError: can only concatenate str (not "int") to str

b.a123

c.123

今天的每日一练就到这里,明天公布答案。