会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lv1883405
博客园
首页
新随笔
联系
订阅
管理
2023年4月25日
控制语句与组合数据类型应用
摘要: 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-25 22:57 gftfuyh
阅读(28)
评论(0)
推荐(0)
2023年3月8日
实验1
摘要: print('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))
阅读全文
posted @ 2023-03-08 11:35 gftfuyh
阅读(13)
评论(0)
推荐(0)
公告