摘要: import turtle # 库引用,引入turtle库 # turtle.setup(width,height,startx,starty) startx/y可选(即默认正中心) turtle.setup(650,350,200,200) # 画笔操作后一直有效,直至下次重新设置 turtle. 阅读全文
posted @ 2021-01-23 22:18 长风青云 阅读(311) 评论(0) 推荐(0)
摘要: 1.Hello World 输出Hello World,注意大小写。 print("Hello World") 2.数字形式转换 获得用户输入的一个正整数输入,输出该数字对应的中文字符表示。‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪ 阅读全文
posted @ 2021-01-23 14:46 长风青云 阅读(155) 评论(0) 推荐(0)
摘要: 画同切圆: import turtle turtle.pensize(2); turtle.circle(10); turtle.circle(20); turtle.circle(40); turtle.circle(80); turtle.circle(160); 画五角星: from turt 阅读全文
posted @ 2021-01-23 00:23 长风青云 阅读(102) 评论(0) 推荐(0)