摘要: 1 A->B2 A->C1 B->C3 A->B1 C->A2 C->B1 A->B4 A->C1 B->C2 B->A1 C->A3 B->C1 A->B2 A->C1 B->C5 A->B1 C->A2 C->B1 A->B3 C->A1 B->C2 B->A1 C->A4 C->B1 A->B 阅读全文
posted @ 2018-06-13 21:00 A班黄梓健 阅读(131) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle. speed(10) colors = ['#EE0000','#666666','#1E1E1E','#EEEE00','#AEEEEE','#9400D3','#8B8989'] for i in range(200): turtle.pencolor(colors[i% 6]) turtle.forward(i) turt... 阅读全文
posted @ 2018-05-30 21:44 A班黄梓健 阅读(120) 评论(0) 推荐(0) 编辑
摘要: id = '440106199909035018' area = id[0:6] birthday = id[6:14] sex = id[-2] print(area, birthday, sex) if (int(sex) % 2 == 0): print('girl') else: print('boy') for i in range(12): print... 阅读全文
posted @ 2018-05-23 21:40 A班黄梓健 阅读(173) 评论(0) 推荐(0) 编辑
摘要: import turtle import math def draw_polygon(aTurtle, size=50, n=3): for i in range(n): aTurtle.forward(size) aTurtle.left(360.0/n) def draw_n_angle(aTu 阅读全文
posted @ 2018-05-16 21:41 A班黄梓健 阅读(153) 评论(0) 推荐(0) 编辑
摘要: turtle.fillcolor('red') turtle.pencolor('red') turtle.begin_fill() for i in range(8): turtle.forward(120) turtle.right(215) turtle.end_fill() turtle.d 阅读全文
posted @ 2018-05-09 21:11 A班黄梓健 阅读(99) 评论(0) 推荐(0) 编辑
摘要: myNumber = 500 while True: guess = int(input('请猜测价格(整数价格,单位元):\n')) if guess > myNumber: print('猜大了,请重新输入') elif guess < myNumber: print('猜小了,请重新输入') else: pri... 阅读全文
posted @ 2018-05-02 21:48 A班黄梓健 阅读(121) 评论(0) 推荐(0) 编辑
摘要: while True: a = int(input('摄氏温度转化为华氏温度请按1\n华氏温度转化为摄氏温度请按2\n')) if a==1: c = float (input('请输入摄氏温度:')) f = c*9/5+32 print('摄氏{:.2f}的华氏为{:.2f}'.format(c,f)) elif a==... 阅读全文
posted @ 2018-04-25 21:45 A班黄梓健 阅读(121) 评论(0) 推荐(0) 编辑
摘要: a = input('输入一个数字:') b = input('再输入一个数字:') sum2=int(a)+int(b) print('两个数之和是{}'.format(sum2)) c = input('输入摄氏温度:') f = float(c)*9/5+32 print('{}摄氏温度转化为华氏温度是{}'.format(c,f)) f = input('输入华... 阅读全文
posted @ 2018-04-25 20:41 A班黄梓健 阅读(129) 评论(0) 推荐(0) 编辑
摘要: name1 = input('请输入一个人名:') name2 = input('再次输入一个人名:') name3 = input('再再次输入一个人名:') print('大家好,我是{},我是{},我是{}.贪玩蓝月,这是你没有挽过的船新版本,是兄弟,就和我一起来贪玩蓝月.'.format ( 阅读全文
posted @ 2018-04-18 21:04 A班黄梓健 阅读(103) 评论(0) 推荐(0) 编辑