hveagle 发表于 2024-2-23 21:11:21

老六报错

本帖最后由 hveagle 于 2024-2-24 12:51 编辑

Traceback ( most recent cal last ):
    File F : U22 / python / sixsix / gamecity / thesix . py ", line 66, in
      s = six('老六', '给', '我', 6666, '鱼币')
SixError : Return me 6666 fish dollars because you are the sixth,please.
源代码:
from tkinter import *
root = Tk()
#3~50行马赛克















































dollars = ['元', '美元', '鱼币', '六币', '成都币']

def six(who1, v='给', who2='我', number=1, dollar='元'):
    if type(number) != int:
      print('你个老六')
      #raise IntError
    if dollar not in dollars:
      print('你个老六')
      #raise DollarsError
    print(who1, v, who2, number, dollar)

print('准备交易了吗?')
for each in range(5):
    print(5-each)

s = six('老六', '给', '我', 6666, '鱼币')

a_button = Button(root, text=str(s))
a_button.pack()
#70~199行马赛克

































































































































mainloop()

liuhongrun2022 发表于 2024-2-23 21:27:29

我能评价一句弱智吗

hveagle 发表于 2024-2-24 12:35:02

liuhongrun2022 发表于 2024-2-23 21:27
我能评价一句弱智吗

滴……

zhangchenyvn 发表于 2024-2-25 15:56:29

我。。。
页: [1]
查看完整版本: 老六报错