04 2021 档案

摘要: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 = '-') prin 阅读全文
posted @ 2021-04-22 20:01 #三三 阅读(56) 评论(0) 推荐(0)
摘要:实验一 x1, y1 = 1.2, 3.57x2, y2 = 2.26, 8.7 print('{:-^40}'.format('输出1'))print('x1 = {}, y1 = {}'.format(x1, y1))print('x2 = {}, y2 = {}'.format(x2, y2) 阅读全文
posted @ 2021-04-08 19:04 #三三 阅读(53) 评论(0) 推荐(0)
摘要:task1 print('hey, u') print('hey', ' u')x = 1y = 2z = 3print(x, y, z) print('x = %d, y = %d, z = %d' %(x, y, z))print('x = {}, y = {}, z = {}'.format( 阅读全文
posted @ 2021-04-02 19:08 #三三 阅读(95) 评论(0) 推荐(0)