nums = [int(i) for i in input().split(',')] # 使用串列生成式,將輸入的數字轉換成串列 result = sum(nums) # 將串列內的數字加總 print(result) # 印出結果.
確定! 回上一頁