
Python
编程
熊乐乐666
作为自己的网络笔记,方便随时学习查找
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python画图
https://segmentfault.com/a/1190000015659597?utm_source=tag-newest转载 2020-06-09 17:02:02 · 151 阅读 · 0 评论 -
python编程
1. @修饰符作用 程序会执行@修饰符后的函数; 若无函数调用,程序也会从@修饰符后的函数开始执行 def test(func): func() print "call test" def test1(f): f() print "call test1" def main(): @test def fun(): ...原创 2020-02-25 10:35:18 · 120 阅读 · 0 评论 -
命令行命令
jupyter登录:jupyter notebook --ip=0.0.0.0 浏览器输入对应网址 ps -ef 查看当前运行进程 pip/python install ... --user (安装在对应目录下) CUDA_VISIBLE_DEVICES=0/1.. python demo.py 选择对应的GPU jupyter转为python文件 jupyter nbconvert -...原创 2020-01-06 14:39:22 · 151 阅读 · 0 评论 -
python
1. import argparse(python中管理命令行参数的库) 用法: import argparse # 导入库 parser = argparse.ArgumentParser() # 构建解析对象 parser.add_argument( 有四部分) ‘--learning rate‘ # 添加命令行参数(一般 #选项 type=str ...原创 2020-01-04 17:07:06 · 130 阅读 · 0 评论