摘要:
#!/usr/bin/env python "make flie and write someting" import os ls = os.linesep #get filename while True: fname = raw_input("please input the file name:\n") if os.path.exists(fname): ... 阅读全文
摘要:
编程中的注意点: s.strip()的使用默认是删除空白符 \\s代表一个字符串 __name__ == "__main__" 代表模块被执行,如果仅仅是导入 __name__的值为模块的名字 注意缩进的使用,保证代码块在正确的缩进中 阅读全文