Useful resources:
- python cook book
- dive into python
- python liabrary manual
- python turtorial
- python<编程金典读书笔记>
- python conferrence paper
- IBM-可爱的python系列
- python Editors
- download python books
- 啄木鸟社区
- Debugging in python Debugger commands
- get the ip address of localhost:
socket.gethostbyname(socket.gethostname()) - using module 'cmd' to build intercative application:
import cmd
class Interactive(cmd.Cmd):
def __init__(self):
cmd.Cmd.__init__(self)
self.prompt = '%'
def help_test(self):
print 'you have typed /'test/' command'
def do_test(self,arg):
print 'Now is procceeding your /'test/' command.'
print 'your arguments are:',arg
def do_EOF(self,arg):
return True
if __name__ == '__main__':
term = Interactive()
term.cmdloop()you can lookup python standard library for details - others to be addedothers to be added
博客提供了Python学习的有用资源,如《Python Cookbook》等书籍、教程、会议论文等,还介绍了Python调试命令。此外,给出获取本地主机IP地址的代码,以及使用'cmd'模块构建交互式应用的示例,可查阅Python标准库获取更多细节。
1212

被折叠的 条评论
为什么被折叠?



