会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
P̶E̶A̶C̶E̶M̶I̶N̶
首页
新随笔
管理
2023年6月13日
PrettyTable 模块
摘要: 添加数据 按照行添加数据 添加单行数据 x = PrettyTable() x.add_row(["张楚岚", "男", "18"]) print(x) 添加多行数据 先创建一个列表 rows = [ [1, '北京', '2023/4/30', 11, 25], [2, '上海', '2023/4
阅读全文
posted @ 2023-06-13 17:39 P̶E̶A̶C̶E̶M̶I̶N̶
阅读(106)
评论(0)
推荐(0)
2023年3月20日
random 模块
摘要: random库是用于产生并运用随机数的标准库 主要包含的有9个随机函数,分别是: seed(), random(), randint(), getrandbits(), randrange(), uniform(),choice() shuffle(), sample() 介绍如下: random.
阅读全文
posted @ 2023-03-20 13:37 P̶E̶A̶C̶E̶M̶I̶N̶
阅读(70)
评论(0)
推荐(0)
OS模块
摘要: import os # print(os.name) # os模块会识别操作系统‘nt’,‘posix’ path = os.getcwd() # 获取当前路径 /home/pyvip/projects print(path) a = os.listdir(path) # 路径下的所有内容,不添加就
阅读全文
posted @ 2023-03-20 13:23 P̶E̶A̶C̶E̶M̶I̶N̶
阅读(34)
评论(0)
推荐(0)
海龟绘图
摘要: turtle库是海龟体系在python语言的功能的实现 turtle库包含近百个功能函数,主要的函数有: 绘制状态函数:pendown(),penup(), pensize(), 对应的别名为pd(), pu(), width() 颜色控制函数:color(), pencolor(), begin_
阅读全文
posted @ 2023-03-20 13:11 P̶E̶A̶C̶E̶M̶I̶N̶
阅读(266)
评论(0)
推荐(0)
公告