eval(input())在接收输入数字作为变量时非常好用
N = eval(input('请输入一个数字:')) print(N) # 78 print(type(N)) # <class 'int'>