這篇文章會介紹使用Python 的input 和字串的拆分,讓使用者輸入多個數字之後, ... 轉換成串列 result = sum(nums) # 將串列內的數字加總 print(result) # 印出結果.
確定! 回上一頁