运行以下代码后出现错误。
这是代码:
a=input("enter the string value")
b=int(input("enter the number"))
c=a+b
print(c)
这是结果:
enter the string value xyz
enter the number 12
Traceback (most recent call last):
File "e:/python learning/error1.py", line 3, in <module>
c=a+b
TypeError: can only concatenate str (not "int") to str
呼啦一阵风
Qyouu
手掌心
函数式编程
MM们
一只甜甜圈
随时随地看视频慕课网APP
相关分类