会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
<<--B站..........欢迎来到DGX的博客..........GitHub-->>
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
2020年3月17日
1.使用turtle库画五角星
摘要: 1 #https://www.cnblogs.com/yeu4h3uh2/ 2 3 import turtle 4 5 turtle.pensize(8) 6 turtle.pencolor("yellow") 7 turtle.fillcolor("red") 8 9 turtle.begin_f
阅读全文
posted @ 2020-03-17 20:28 DG息
阅读(648)
评论(0)
推荐(0)
2020年3月14日
8.使用turtle库进行五角星绘制
摘要: 1 import turtle 2 import time 3 4 turtle.pensize(1) 5 turtle.pencolor("black") #画笔黑色 6 turtle.fillcolor("red") #内部填充红色 7 #绘制五角星# 8 turtle.begin_fill()
阅读全文
posted @ 2020-03-14 14:16 DG息
阅读(1385)
评论(0)
推荐(1)
2020年3月11日
7.使用turtle库进行六角形的绘制
摘要: 1 import turtle 2 turtle.screensize(800,800,"brown") 3 turtle.setup(800,500,100) 4 turtle.penup() 5 turtle.fd(-100) 6 turtle.pendown() 7 turtle.pensiz
阅读全文
posted @ 2020-03-11 14:35 DG息
阅读(1290)
评论(0)
推荐(1)
6.使用turtle库进行叠加等边三角形绘制
摘要: 1 import turtle 2 turtle.screensize(800,800,"red") 3 turtle.setup(800,500,100) 4 turtle.penup() 5 turtle.fd(-100) 6 turtle.pendown() 7 turtle.pensize(
阅读全文
posted @ 2020-03-11 14:19 DG息
阅读(1995)
评论(0)
推荐(1)
5.说句心里话A
摘要: 1 a=input("") 2 b=input("") 3 print(a+'我想对你说,'+b)
阅读全文
posted @ 2020-03-11 13:39 DG息
阅读(369)
评论(0)
推荐(1)
4.N的多次方
摘要: 1 i=0 2 N=eval(input()) 3 while i<6: 4 temp=pow(N,i) 5 print(temp) 6 i=i+1
阅读全文
posted @ 2020-03-11 13:15 DG息
阅读(203)
评论(0)
推荐(1)
3.世界,你好!
摘要: 1 print('Hello World!')
阅读全文
posted @ 2020-03-11 01:08 DG息
阅读(222)
评论(0)
推荐(1)
1.Hello World
摘要: 1 name=input("") 2 print("Hello,"+name.title()+"同学!")
阅读全文
posted @ 2020-03-11 00:12 DG息
阅读(215)
评论(0)
推荐(1)
2020年3月10日
绘制小蟒蛇
摘要:
阅读全文
posted @ 2020-03-10 23:26 DG息
阅读(269)
评论(0)
推荐(1)
上一页
1
···
4
5
6
7
8
公告