摘要: 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,-radius 阅读全文
posted @ 2021-06-15 10:30 --艾合 阅读(34) 评论(2) 推荐(0)
摘要: class StudentDoc: def_ init_ (self,n,a,m,s): self. n=n self._ aa self._ mm self._ s=s def set(self,s): self._ S=s def date(self): print(f'#%: fself._ 阅读全文
posted @ 2021-05-30 16:46 --艾合 阅读(25) 评论(2) 推荐(0)
摘要: with open('data1_1.txt', 'r', encoding = 'utf-8') as f: data=f.readlines() n = 0 for line in data: if line.strip('\n') == '': continue n+=1 print(f'共{ 阅读全文
posted @ 2021-05-16 01:14 --艾合 阅读(58) 评论(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='-') print('\n整数输出3: 阅读全文
posted @ 2021-04-20 10:51 --艾合 阅读(50) 评论(2) 推荐(0)
摘要: x1, y1 = 1.2, 3.57 x2, y2 = 2.26, 8.7 print('{:-^40}'.format('输出1')) print('x1 = {}, y1 = {}'.format(x1, y1)) print('x2 = {}, y2 = {}'.format(x2, y2)) 阅读全文
posted @ 2021-04-06 19:37 --艾合 阅读(52) 评论(3) 推荐(0)
摘要: x1,y2=1.2,3.57 x2,y2=2.26,8.7 print('{:-^40}'.format('输出1')) print('x1 = {}, y1 = {}'.format(x1,y1)) print('x2={},y2={}'.format(x2,y2)) print('x1={:<1 阅读全文
posted @ 2021-04-02 17:33 --艾合 阅读(26) 评论(1) 推荐(0)
摘要: s=input('Enter a string:') l=s.upper() print(l.replace('A','')) 阅读全文
posted @ 2021-04-02 17:06 --艾合 阅读(31) 评论(1) 推荐(0)
点击右上角即可分享
微信分享提示