- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 python3 搭建简单的文件服务器
实验环境: Ubuntu 16.04 python3.5.2python -m http.server 端口在浏览器中打开ip:端口
2018-10-17 10:16:30 4002 1
原创 jupyter 使用
安装pip3 install jupyter运行帮助jupyter notebook -h指定端口和ipjupyter notebook --ip 0.0.0.0 --port 20000 --no-browser在浏览器上运行 http://(ip):20000/?token=...
2018-10-15 14:15:30 245
原创 tensorflow 打印pb模型的所有节点
只有pd模型文件, 打印所有节点from tensorflow.python.framework import tensor_utilfrom google.protobuf import text_formatimport tensorflow as tffrom tensorflow.python.platform import gfilefrom tensorflow.python...
2018-10-10 16:28:10 8468
原创 docker中实验 tensorboard 显示pb图结构
实验在docker中进行, 所以 ip 为 0.0.0.0import tensorflow as tffrom tensorflow.python.platform import gfilegraph = tf.get_default_graph()graphdef = graph.as_graph_def()graphdef.ParseFromString(gfile.FastGF...
2018-10-10 15:38:50 572
原创 自动生成和安装requirements.txt依赖
requirements.txt可以通过pip命令自动生成和安装生成requirements.txt文件pip freeze > requirements.txt安装requirements.txt依赖pip install -r requirements.txt
2018-10-10 11:54:25 1767 1
原创 python去除字符串首尾的空格
strip是trim掉字符串两边的空格。lstrip, trim掉左边的空格rstrip, trim掉右边的空格theString = ' kljll ' print theString.strip()# kljll
2018-10-10 11:53:31 29703 1
原创 python 安装gevent 问题
pip3 install geventCollecting geventException:Traceback (most recent call last): File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connection.py", line 137, in _new_conn...
2018-10-10 10:36:02 3995 2
原创 python 错误集合
OSError: raw write() returned invalid length 94 (should have been between 0 and 47)在vscode实验python程序时, 出现上面错误.解决方法:安装win_unicode_console:pip install win_unicode_console在代码中加入:import win_unicode...
2018-10-04 13:52:52 530
fatal: open /dev/null or dup failed: No such file or directory(解决文件)
2018-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人