摘要:
官网下载easygui,在cmd里cd到文件夹位置,输入python setup.py install 在python中调用 import easygui 后续使用都要用easygui.XXX函数使用 或者from easygui import * 之后可以直接使用函数 但是最好用import ea 阅读全文
摘要:
else 要么怎样,要么不怎样 干完了能怎样,干不完就别想怎样 if XXX: XXX else: XXX 没有问题,那就干吧 with 不使用with时 使用with时,会在异常时自动关闭文件f.close 阅读全文
摘要:
Python标准异常总结 以下是 Python 内置异常类的层次结构:BaseException+-- SystemExit+-- KeyboardInterrupt+-- GeneratorExit+-- Exception +-- StopIteration +-- ArithmeticErro 阅读全文
摘要:
os模块中关于文件/目录常用的函数使用方法 函数名 使用方法 以下是支持路径操作中常用到的一些定义,支持所有平台 os.path模块中关于路径常用的函数使用方法 函数名 使用方法 以下为函数返回 True 或 False 阅读全文