code:
money=1000 取款=int(input('请输入取款金额:')) if 取款<=money: print('请拿好钞票',取款) print('账户余额为:', money = money-取款) else: print('余额不足,现有:', money) print('请再次输入取款金额:')result
Error:请输入取款金额:350
请拿好钞票 350
Traceback (most recent call last):
File "E:\2018.1.1\Python\4 if.py", line 5, in <module>
print('账户余额为:', money = money-取款)
TypeError: 'money' is an invalid keyword argument for print()
so when print, money = money - withdraw is causing trouble, right?
buran write Feb-07-2021, 02:59 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
You already have been advised to do so.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
You already have been advised to do so.