摘要:
/bin/sh^M: bad interpreter: No such file or directory2009-06-18 13:59在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file or directory。 分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。 解决:1)在windows下转换: 利用一些编辑器如UltraEdit或EditPlus等工具先将脚本编码转换,再放到Linux中执行。转换方式如下(UltraEdit):File- 阅读全文
摘要:
下图是一个概况图,根据这个图生成代码:代码清单1:editable.pyclass Editable: """ 个人信息用户界面的公共接口 """ # 获得个人信息编辑界面 def getEditor(self): pass代码清单2:editor.pyclass Editor: """ 用户使用特定的Editor来编辑个人信息 """ # 获取代表用户界面(UI)的对象 def getUI(self): pass # 获取用户输入的数据 def getContent(sel 阅读全文
摘要:
python simple factory 笔记 阅读全文
摘要:
转载,原网址 http://roadkill.com/~wesc/res2.html 阅读全文