【发布时间】:2013-02-20 13:21:33
【问题描述】:
name = input('Enter name here:')
pyc = input('enter pyc :')
tpy = input('enter tpy:')
percent = (pyc / tpy) * 100;
print (percent)
input('press enter to quit')
每当我运行这个程序时,我都会得到这个
TypeError: unsupported operand type(s) for /: 'str' and 'str'
如何将 pyc 除以 tpy?
【问题讨论】: