inp = input(‘请输入一个数‘) (input 接收的都是字符串)
>>>10 (这是‘10‘,是一个字符串)
int(‘10’) 强制转换
input
原文:https://www.cnblogs.com/naihexiangshi/p/10048085.html