应该打开黑色背景窗口的简单 Python 程序显示错误。import turtlewn = turtle.Screen()wn.title("Turtle by Lord Hendrix")wn.bg('Black')wn.setup(width=1000, height=800)wn.tracer(0)错误是:Traceback (most recent call last): File "/home/lord_hendrix17/PycharmProjects/Game Dev/Game1.py", line 7, in <module> wn.bg('Black')AttributeError: '_Screen' object has no attribute 'bg'
添加回答
举报
0/150
提交
取消