它告诉我“预计有一个缩进块”有人可以帮助我吗?

def run():

        global var

        var = something()

for x in range(10):

        if x < 0:

        return

    from tkinter import *

    master = Tk()


    canvas_width = 2000

    canvas_height = 1000


    w = Canvas(master, 

                width=canvas_width,

                height=canvas_height)

    w.pack()


    y = int(canvas_height / 2)

    # w.create_line(0, y, canvas_width, y, fill="#476042")

    # w.Label(0, y, canvas_width, y, text="Hello Tkinter!")

    w.create_text(y, y, text="Take your shot", font="Helvetica 115 bold")

    mainloop()


    run()


呼啦一阵风
浏览 156回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python