如何在Python 2.7中使用"long int"输入?
PS我尝试了各种各样的变化n=(*(raw_input()))但无济于事.
在一些类似的问题中,这个特定的问题要么没有通过建议的解决方案解决,要么问题已经摇摆到不同的主题.因此,我不得不问这个问题:
返回的错误是:
Traceback (most recent call last):
File "learn.py", line 8, in <module>
frame = simplegui.create_frame("Home", 300, 200)
AttributeError: 'module' object has no attribute 'create_frame'
Run Code Online (Sandbox Code Playgroud)
这与以下代码有关
import simplegui
message = "Welcome!"
def click():
global message
message = "Good job!"
def draw(canvas):
canvas.draw_text(message, [50,112], 48, "Red")
frame = simplegui.create_frame("Home", 300, 200)
frame.add_button("Click me", click)
frame.set_draw_handler(draw)
frame.start()
Run Code Online (Sandbox Code Playgroud)
我在Ubuntu上使用pip安装了"simplegui",但问题似乎没有根据.请提出可行的解决方案.