摘要:
如果“__name__”是在功能函数下的时候,“__name__" == "__main__" 如果“__name__”是在主模块下的时候,“__name__" == "主函数的函数名称" 阅读全文
摘要:
import sys import os base_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(base_dir) os.path.abspath(__file__) 确认*.py的绝对路径 os.path.dirname(os.path.abspath(__file__)) 返回*.py的上... 阅读全文
摘要:
pdfmerge 0.0.7 https://pypi.python.org/pypi/pdfmerge/0.0.7 pyPDF2 https://pypi.python.org/pypi/PyPDF2/1.26.0 安装 python3 -m pip install pdfmerge 使用 fro 阅读全文