python 第三方库
2024-10-10 13:03:46
1.tqdm 进度条
from tqdm import tqdm for i in tqdm(range(10000)):
pass
2.fire 自动创建命令行接口(command line interfaces)
a.单个函数
import fire
def hello():
print("hello world!") if __name__ == '__main__':
fire.Fire()
b.多个函数 python hello.py hello1 "beijing"
#hello.py import fire
def hello1(place):
print("hello world1! I'm in"+place)
def hello2(name):
print("hello world2!"+name)
if __name__ == '__main__':
fire.Fire()
最新文章
- 基于DDD的.NET开发框架 - ABP的Entity设计思想
- linux下查看某软件是否已安装, ubuntu安装deb包
- isa指针
- mysql-函数FOUND_ROWS()
- 找出程序cpu使用率高的原因
- webapp 慎用setInterval、setTimeout
- Unity 用C#脚本读取JSON文件数据
- effective_c++条款20,用pass-by-reference-to-const替换pass-by-value
- 开始学javascript基础
- 读书笔记 effective c++ Item 31 把文件之间的编译依赖降到最低
- 深入理解javascript函数进阶系列第三篇——函数节流和函数防抖
- C# 视频多人脸识别
- maven加载本地jar包到repository
- mySQL InnoDB 的性能问题讨论
- npm安装第三方库找不到“cl.exe”问题
- 用鼠标键盘来控制你的Android手机——同屏显示简单教程
- xss绕过htmlspecialchars实体编码的姿势
- 算法抽象及用Python实现具体算法
- DevExpress v17.2新版亮点—Windows 10篇
- MyOD课堂实践(5月31日)20155318