📜  创建窗口乌龟 python 代码示例

📅  最后修改于: 2022-03-11 14:46:48.254000             🧑  作者: Mango

代码示例1
import turtle

# Create the window
wn = turtle.Screen()
wn.setup(800, 600) # Dimensions
wn.bgcolor("black") # Background color
wn.title("Window") # Title

# Main loop
while True:
  window.update() # Update window