1. 程式人生 > >pycharm錯誤執行報告(完善中)

pycharm錯誤執行報告(完善中)

1.引數型別錯誤:a和b為字元型變數,不能進行取餘運算
#輸入兩個正整數a和b,若任意一個數可以整除另一個數,則輸出Ture
#引數設定為2和4

import stdio
import sys

a = sys.argv[1]
b = sys.argv[2]
c = b % a == 0
d = a % b == 0
e = a + b

stdio.writeln(c or d)
stdio.writeln(e)
stdio.writeln(type(e))

錯誤報告:

TypeError: not all arguments converted during string formatting