06 2024 档案
python 基础习题6--for循环和while循环
摘要:1. 用for循环打印1--10这10个数字,格式如下: 运行结果如下: 1 2 3 4 5 6 7 8 9 10 2. 用 while 循环打印 1-10这个10个数字,请在横线处填空: counter = 1 while counter <= ________: print(counter) _
阅读全文
python 基础习题5 --- 海龟画图系列
摘要:1. 画出一个半径为100的圆,背景色和画笔颜色自己定义,如下图: import turtle as t t.speed(10) t.bgcolor("black") t.pencolor("red") t.pensize(2) radius = 100 t.penup() t.goto(0, -1
阅读全文