python 中判斷input函數輸入是否爲空

錯誤姿式: #連續輸入多個數 x = eval(input("請輸入1個數")) print(x) 請輸入1個數 Traceback (most recent call last): File "D:/Python/day2/input.py", line 2, in <module> x = eval(input("請輸入1個數")) File "<string>", line 0 ^ Synt
相關文章
相關標籤/搜索