![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
练习
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 · 507 阅读 · 0 评论 -
Learn Python the hard way 习题49
这个练习是自己写测试了。按照函数一个个写,好像有点长了from nose.tools import *from Game import parserfrom Game.lexicon import lexiconlexi = lexicon.scan("fighter kill bear")sen = parser.Sentence(lexi[0], lexi[1], lexi[2]原创 2017-03-28 22:17:38 · 1181 阅读 · 0 评论 -
TensorFlow使用中的问题
1.服务器重启后torch不能用cuda,使用tensorflow的时候发现报错cuda_driver.cc:406] failed call to cuInit: CUDA_ERROR_UNKNOWN的错误 安装sudo apt-get install nvidia-modprobe2.缺少CUPTIexport LD_LIBRART_PATH=/usr/local/cuda/e原创 2018-01-23 14:16:17 · 628 阅读 · 0 评论 -
EAST: An Efficient and Accurate Scene Text Detector中遇到的问题
https://github.com/argman/EAST1.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 · 963 阅读 · 0 评论