![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Vchnun
这个作者很懒,什么都没留下…
展开
-
Learn Python the hard way 习题48
#_*_coding:utf-8_*_ class lexicon(object): def __init__(self): # dictionary to find word on self.directions = ['south', 'north', 'east', 'west'] self.verbs = ['go', 'kill', 'eat'] self.stop原创 2017-03-28 08:56:22 · 511 阅读 · 0 评论 -
Learn Python the hard way 习题49
这个练习是自己写测试了。按照函数一个个写,好像有点长了 from nose.tools import * from Game import parser from Game.lexicon import lexicon lexi = lexicon.scan("fighter kill bear") sen = parser.Sentence(lexi[0], lexi[1], lexi[2]原创 2017-03-28 22:17:38 · 1194 阅读 · 0 评论 -
TensorFlow使用中的问题
1.服务器重启后torch不能用cuda,使用tensorflow的时候发现报错 cuda_driver.cc:406] failed call to cuInit: CUDA_ERROR_UNKNOWN的错误 安装sudo apt-get install nvidia-modprobe 2.缺少CUPTI export LD_LIBRART_PATH=/usr/local/cuda/e原创 2018-01-23 14:16:17 · 640 阅读 · 0 评论 -
EAST: An Efficient and Accurate Scene Text Detector中遇到的问题
https://github.com/argman/EAST 1.Error 127 和 fatal error: Python.h: No such file or directory 这两个是编译环境没准备好, apt-get安装g++和python-dev解决 2.还是/lanms下文件的问题 "undefined symbol: _Py_ZeroStruct" 运行原创 2018-01-20 23:36:33 · 976 阅读 · 0 评论