摘要:
from turtle import* def square(size=50,rgb='orange'): pencolor('green') for i in range(4): fd(size) left(90) def main(): setup(800,600) speed(0) for i 阅读全文
摘要:
list=[] with open('data6_1.txt', 'r', encoding = 'utf-8') as f: x=f.readlines() for i in x: list.append(i.strip().split()) m=lambda x:x[2] list.sort(k 阅读全文
摘要:
task1-1 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 阅读全文
摘要:
print('hey, u') print('hey', ' u') x = 1 y = 2 z = 3 print(x, y, z) print('x = %d, y = %d, z = %d' %(x,y,z)) print('x = {}, y = {}, z = {}'.format(x,y 阅读全文