摘要: from turtle import * def moveto(x,y): penup() goto(x,y) pendown() def main(): setup(800, 600) speed(0) for radius in range(20, 200, 20): moveto(0, -ra 阅读全文
posted @ 2021-06-15 10:57 龙海昌 阅读(46) 评论(4) 推荐(0)
摘要: class StudentDoc: def __init__(self,studentnumber,name,major,point): self._studentnumber = studentnumber self._name = name self._major = major self._p 阅读全文
posted @ 2021-05-27 17:06 龙海昌 阅读(42) 评论(3) 推荐(0)
摘要: with open('data6_1.txt', 'r', encoding='utf-8') as f: d = f.read().split('\n') d1 = [str(i).split('\t') for i in d] d1.sort(key=lambda x: x[2], revers 阅读全文
posted @ 2021-05-12 21:51 龙海昌 阅读(47) 评论(3) 推荐(0)
摘要: x = list(range(10)) print('整数输出1: ', end = '') for i in x: print(i, end=' ') print('\n整数输出2: ', end = '') for i in x: print(f'{i:02d}', end = '-') pri 阅读全文
posted @ 2021-04-17 12:57 龙海昌 阅读(52) 评论(3) 推荐(0)
摘要: yw1 = input('输入愿望:') yw2 = input('输入愿望:') yw3 = input('输入愿望:') list=[yw1,yw2,yw3] print('{:-^50}'.format('我的愿望清单')) n = 1 for s in list: print(f'{n}.{ 阅读全文
posted @ 2021-04-02 17:11 龙海昌 阅读(50) 评论(3) 推荐(0)