Python a,b,c=eval(input("input a,b,c:")) #數字請用逗號『,』隔開,例如. 12,3,4 print(a+b+c)#19 eval 還可輸入一個數學運算式,例如: a=eval("3+4*2" ) print(a).
確定! 回上一頁