摘要:
看这篇文章如果还不会。。。请顺着网线来打我!!! 镜像问题: ModuleNotFoundError: No module named '__main__.xxxxx'; '__main__' is not a package 解决方法: 如果导入的模块和主程序在同个目录下,直接import就行了 阅读全文
摘要:
毕竟是生产。。。。。 提示以下信息: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now 原因是:这个压缩包没有用gzip格式压缩,所以不用加z 阅读全文
摘要:
1.else的用法 对try...except的补充: else子句的使用比在子句中添加其他代码更好,try因为它避免了意外捕获由try... except语句保护的代码未引发的异常。 for arg in sys.argv[1:]: try: f = open(arg, 'r') except O 阅读全文