首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >unsupported operand type(s) for 'str' and 'str'?

unsupported operand type(s) for 'str' and 'str'?

提问于 2020-10-24 14:10:49
回答 0关注 0查看 855

TypeError: unsupported operand type(s) for -: 'str' and 'str'怎么解决

我的代码如下

x=input("请输入金额:")

s=input("请输入进价:")

d=x-s

print("利润:",d)

我用的是IDLE

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档