- 博客(10)
- 收藏
- 关注
转载 oh my zsh报错解决
Mac 升级 big sur 之后 VSCode terminal 报错:failed to load module `zsh/terminfo': dlopen(/usr/lib/zsh/5.7.1/zsh/terminfo.so, 9): image not found 。解决方法就是 删除掉: /usr/local/bin/zsh。原答案 : I've hit this recently and the solution was to remove the /usr/local/bin/zsh f
2022-06-18 16:32:29
2924
转载 Mininet 2.0.0 Testing Plan and Projects
Scalability and performance tests!!A goal of Mininet was "1000 nodes in a laptop" - we really need to identify the true capabilities and scalability of Mininet; I think we should have some tests
2014-03-20 21:46:46
839
转载 Ubuntu安装Wireshark不须root权限抓包方法
sudo addgroup -system wiresharksudo chown root:wireshark /usr/bin/dumpcapsudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcapsudo usermod -a -G wireshark YOUR_USER_NAME
2014-02-19 23:04:59
1369
转载 ipdb调试命令
The IPdb debug commandsThe commands recognized by the debugger are listed in the nextsection. Most can be abbreviated as indicated; e.g., h(elp) meansthat 'help' can be typed as 'h' or 'help' (b
2014-01-01 17:30:09
4324
转载 python中的可变参数*args, **kwargs
def foo(*args, **kwargs):print 'args = ', argsprint 'kwargs = ', kwargsprint '---------------------------------------'if __name__ == '__main__':foo(1,2,3,4)foo(a=1,b=2,c=3)foo(1,2,3,4, a=1,b=2
2013-12-30 11:11:49
1131
原创 All the python knowledge that I come across
关于PEP的解释:PEP 的全名是 Python Enhancement Proposals 翻译成中文就是 "Python 增强建议书" 的意思,它是用来规范和定义 Python 的各种加强与延伸功能的技术规格,好让 Python 开发社区能有共同遵循的依据。每个 PEP 都有一个编号而且是唯一的,这个编号一旦给定了就不会再改变,例如,PEP 3000 就是用来定义 Python 3
2013-12-25 13:57:53
705
转载 Ubuntu 完美安装Sublime Text 2 & Ubuntu Tweak
为Ubuntu 安装上Sublime Text 2,并且为它配置上在Terminal 上输入subl就可以运行安装,这样比下载文件夹放到/opt/的优点就是你在dash home 里面搜索sublime 就能出来sudo add-apt-repository ppa:webupd8team/sublime-text-2sudo apt-get updatesud
2013-12-24 15:50:39
789
原创 我遇到的python错误及解决方法
2013.12.17使用os.mkdir(dir)方法时,当dir中含有非ascii字符如“:”时,程序创建的文件夹名称带有乱码通过utf-8的编码方式打开文件,问题解决,以下是代码:# coding=utf-8import codecscodecs.open('file.txt', 'r', 'utf-8').readlines()
2013-12-17 21:50:50
931
原创 Python使用easy install安装BeautifulSoup
Step1:下载setuptoolsStep2:cd到解压目录,python ez_setup.pyStep3:如果出现UnicodeError,"ascii"之类的错误,至python安装目录\Lib\mimetypes.py,做如下修改:import sysreload(sys) # Add this linesys.setdefaultencoding('gb18030')
2013-12-17 20:27:21
1243
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人