摘要:
今天读取文件时eclipse报错, IOError: [Errno 2] No such file or directory: '/home/xxx/images/xx.jpg\n' 然后我反复对照自己本地的路径仔细检测了几遍,都没发现问题。期间进行了测试,代... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(143)
评论(0)
推荐(0)
摘要:
第一步:安装python包依赖 sudo pip install Cythonsudo pip install easydict 第二步:下载源代码 git clone --recursive https://github.com/rbgirshick/py... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(37)
评论(0)
推荐(0)
摘要:
用distutils构造Cpthon模块 第一步:先写一个hello.pyx脚本 def say_hello_to(name): print("Hello %s!" % name) 第二步:写一个和编译有关的 setup.py脚本 from distu... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(24)
评论(0)
推荐(0)
摘要:
区别一: py2:dict.iteritems() py3:dict.items() 区别二: py2:cPickle py3:_pickle (import _pickle as cPickle) 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(41)
评论(0)
推荐(0)
摘要:
除了在/.bashrc中配置LD_LIBRARY_PATH路径以外,还需要配置PATH路径,完整配置如下: export LD_LIBRARY_PATH=/usr/local/cuda/lib export PATH=$PATH:/usr/local/cuda... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(1373)
评论(0)
推荐(0)
摘要:
tensorflow通过命令行传入参数示例代码如下: import tensorflow as tfFLAGS=tf.app.flags.FLAGStf.app.flags.DEFINE_string('demo','','This is a demo to ... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(26)
评论(0)
推荐(0)
摘要:
gnome-screensaver-command -l 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(193)
评论(0)
推荐(0)
摘要:
打开命令行,输入: echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.l... 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(84)
评论(0)
推荐(0)
摘要:
Ubuntu显示桌面除了使用快捷键外,还可以直接在侧栏显示图标。 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(128)
评论(0)
推荐(0)
摘要:
打开/etc/rc.local文件, sudo gedit /etc/rc.local在exit 0前添加脚本 阅读全文
posted @ 2022-11-13 22:37
dlhl
阅读(77)
评论(0)
推荐(0)

浙公网安备 33010602011771号