想要实现以下功能
>>> json.loads('[,0]')
[None, 0
一直在linux 下用 translate-shell, 翻译中会附带上同义词. 但是win下没有好的支持. 找了一些类似调用google translate的实现. 但是都只是拿到翻译后的内容. 并不对同义词,反义词处理. 我猜想主要的原因是translate.google.com(国内可以访问.cn)返回的是js 的对象. 对比json会发现其中存在'[,,]'.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd"> | |
| <en-export export-date="20120727T073610Z" application="Evernote" version="Evernote Mac 3.0.5 (209942)"> | |
| <note><title>Vim Tips</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"> | |
| <en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> | |
| yank for copy, delete for cut, put for parse | |
| <div><br/></div> | |
| <div>Move in context, not position</div> | |
| <div>/ search forward</div> |
##ubuntu 13.10 and later , you need to install openoffice 4.1.1
###1. uninstall libreoffice and openoffice
sudo apt-get remove libreoffice* openoffice*
sudo apt-get autoremove
###2. install Apache OpenOffice 4.1.1 on 64 bit Ubuntu
wget sourceforge.net/projects/openofficeorg.mirror/files/4.1.1/binaries/en-GB/Apache_OpenOffice_4.1.1_Linux_x86-64_install-deb_en-GB.tar.gz
#科技树 ##编程语言:
##版本管理: cvs -> svn -> git
##开发工具: 包管理 pip wheel
#matplotlib 支持 ttc ttc 是 microsoft 的标准, 还是建议使用 ttctools 分解 ttc 为多个ttf . 然后拷贝ttf 到字体目录(/usr/share/fonts/truetype)
grep Wen ~/.cache/matplotlib/fontList.cache
S'WenQuanYi Micro Hei'
以下为hack方法, 不建议使用
matplotlib 1.3.1 版本中默认不使用ttc 字体, hack matplotlib的字体查找方法, 使其可以使用ttc 字体. ##安装字体
| diff --git a/pprint.py b/pprint.py | |
| --- a/pprint.py | |
| +++ b/pprint.py | |
| @@ -36,6 +36,7 @@ saferepr() | |
| import sys as _sys | |
| import warnings | |
| +import locale | |
| from cStringIO import StringIO as _StringIO |
| 2013-10-10 15:24:21,461 - 282: 得到 一张3星卡 特异型黑沃尔 | |
| 2013-10-10 15:24:36,321 - 282: 得到 一张3星卡 特异型圣日耳曼 | |
| 2013-10-10 15:24:36,872 - 282: 得到 一张4星卡 第二型加雷斯 | |
| 2013-10-10 15:24:37,459 - 282: 得到 一张4星卡 支援型甜心 | |
| 2013-10-10 15:24:38,042 - 282: 得到 一张4星卡 特异型猎户座 | |
| 2013-10-10 15:24:38,632 - 282: 得到 一张3星卡 特异型白雪公主 | |
| 2013-10-10 15:24:39,207 - 282: 得到 一张4星卡 支援型提妮亚 | |
| 2013-10-10 15:24:39,832 - 282: 得到 一张4星卡 复原型乌瑟 | |
| 2013-10-10 15:24:40,420 - 282: 得到 一张5星卡 幻兽型月兔 | |
| 2013-10-10 15:24:41,039 - 282: 得到 一张3星卡 支援型兰克 |
#需求分析
##探索
##妖精战