摘要:
from turtle import * def square(size=50, rgb='orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800,600) speed(0) for i i 阅读全文
摘要:
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(' 阅读全文
摘要:
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 阅读全文