摘要: 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-07 21:11 彭锦荣 阅读(32) 评论(0) 推荐(0)
摘要: lists = [] i = 0 n = 1 while i <= 2: x = input('输入愿望') lists.append(x) i += 1 lists.sort() print('{:-^40}'.format('我的愿望清单')) for list in lists: print( 阅读全文
posted @ 2021-04-07 21:07 彭锦荣 阅读(164) 评论(0) 推荐(0)
摘要: lists = '''The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is 阅读全文
posted @ 2021-04-07 20:55 彭锦荣 阅读(404) 评论(0) 推荐(0)