摘要: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 阅读全文
posted @ 2017-09-07 18:54 ELsky 阅读(209) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.bgcolor('red') turtle.color('yellow') turtle.begin_fill() turtle.fillcolor('yellow') turtle.penup() turtle.goto(-310,200) turtle.pendown() for i in range(5): turtle.forward(15... 阅读全文
posted @ 2017-09-07 18:49 ELsky 阅读(838) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.penup() turtle.goto(0,-200) turtle.pendown() turtle.circle(200) turtle.penup() turtle.goto(0,-150) turtle.pendown() turtle.circle(150) turtle.penup() turtle.goto(0,-100) turtle.p... 阅读全文
posted @ 2017-09-07 18:48 ELsky 阅读(262) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.color('yellow') turtle.begin_fill() turtle.fillcolor('yellow') turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turt... 阅读全文
posted @ 2017-09-07 18:47 ELsky 阅读(415) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) turtle.left(144) turtle.forward(300) 阅读全文
posted @ 2017-09-07 18:46 ELsky 阅读(122) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.circle(10) turtle.circle(20) turtle.circle(40) turtle.circle(80) 阅读全文
posted @ 2017-09-07 18:44 ELsky 阅读(240) 评论(0) 推荐(0) 编辑
摘要: a=float(input('第一条边长:')) b=float(input('第2条边长:')) c=float(input('第3条边长:')) p=(a+b+c)/2 s=(p*(p-a)*(p-b)*(p-c))**0.5 print(s) 阅读全文
posted @ 2017-09-07 18:43 ELsky 阅读(2964) 评论(0) 推荐(0) 编辑
摘要: r=float(input('半径:')) s=3.14*r*r print('面积是:',s) 阅读全文
posted @ 2017-09-07 18:43 ELsky 阅读(903) 评论(0) 推荐(0) 编辑
摘要: print(float(input('第1个数:'))+float(input('第2个数:'))) 阅读全文
posted @ 2017-09-07 18:42 ELsky 阅读(829) 评论(0) 推荐(0) 编辑
摘要: >>> name = input("name:") name:zhou >>> print("{}student,learn Python,furture!".format(name)) zhoustudent,learn Python,furture! >>> print("{}daxia,xuehaoPython,dazhanquanjiao! ".format(name[0])) zdax... 阅读全文
posted @ 2017-09-07 11:37 ELsky 阅读(214) 评论(0) 推荐(0) 编辑
摘要: >>> print ("hello world") hello world >>> 阅读全文
posted @ 2017-09-07 11:29 ELsky 阅读(108) 评论(0) 推荐(0) 编辑