![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python
编程
熊乐乐666
作为自己的网络笔记,方便随时学习查找
展开
-
Python画图
https://segmentfault.com/a/1190000015659597?utm_source=tag-newest转载 2020-06-09 17:02:02 · 111 阅读 · 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 · 80 阅读 · 0 评论 -
命令行命令
jupyter登录:jupyter notebook --ip=0.0.0.0浏览器输入对应网址ps -ef 查看当前运行进程pip/python install ... --user (安装在对应目录下)CUDA_VISIBLE_DEVICES=0/1.. python demo.py 选择对应的GPUjupyter转为python文件jupyter nbconvert -...原创 2020-01-06 14:39:22 · 106 阅读 · 0 评论 -
python
1. import argparse(python中管理命令行参数的库)用法:import argparse # 导入库parser = argparse.ArgumentParser() # 构建解析对象 parser.add_argument( 有四部分) ‘--learning rate‘ # 添加命令行参数(一般 #选项 type=str ...原创 2020-01-04 17:07:06 · 85 阅读 · 0 评论