小编rel*_*hed的帖子

PythonAnywhere:尝试使用easygui模块时出现Tkinter.py错误

我的儿子正在尝试使用pythonAnywhere执行一个小程序.

import random, easygui
secret = random.randint(1,99)
guess = 0
tries = 0
easygui.msgbox ("AHOY! I'm the Dread Pirate Roberts, and I have a    secret!\n"
"It is a number from 1 to 99. I'll give ye 6 tries.")
while guess != secret and tries < 6:
    guess = easygui.integerbox ("What's yer guess, matey?")
    if not guess: break
    if guess < secret:
        easygui.msgbox (str(guess) + "is too low, ye scurvy dog!")
    elif guess > secret:
        easygui.msgbox (str(guess) + "is too high, …
Run Code Online (Sandbox Code Playgroud)

python bash tkinter pythonanywhere

2
推荐指数
1
解决办法
414
查看次数

标签 统计

bash ×1

python ×1

pythonanywhere ×1

tkinter ×1