通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
正方形绘制。使用 turtle 库,绘制一个边长值为 100 的正方形。
from turtle import * for i in range(4): fd(100) left(90)