eval(input())在接收輸入數字作為變量時非常好用
N = eval(input('請輸入一個數字:')) print(N) # 78 print(type(N)) # <class 'int'>