04 2023 档案

摘要:import random print('用列表存储随机整数: ') lst = [random.randint(0, 100) for i in range(5)] print(lst) print('\n用集合存储随机整数: ') s1 = {random.randint(0, 100) for 阅读全文
posted @ 2023-04-22 19:41 曾诚 阅读(12) 评论(0) 推荐(0) 编辑
摘要:task 1_1.pyprint('hey,u') print('hey', ' u') x,y,z = 1,2,3 print(x, y, z) print('x=%d,y=%d,z=%d'%(x,y,z)) print('x={},y={},z={}'.format(x,y,z)) print( 阅读全文
posted @ 2023-04-13 23:19 曾诚 阅读(12) 评论(0) 推荐(0) 编辑