python学习9——小练习
摘要:
输出结果: 想要将apple的值改为提示别人输入值,需要使用input(),在python3 中input()的值默认为字符串,会出现TypeError: unsupported operand type(s) for /: 'str' and 'int'的错误,所以需要借助int()。 阅读全文
posted @ 2018-08-27 17:06 shannon_V 阅读(159) 评论(0) 推荐(0) 编辑