摘要: setup函数常用参数: --name 包名称 --version 包版本 --author 程序作者 --author_email 程序作者的邮箱地址 --maintainer 维护者 --maintainer_email 维护者的邮箱地址 --url 程序的官网地址 --license 程序的授 阅读全文
posted @ 2018-10-24 16:14 WESWES 阅读(394) 评论(0) 推荐(0)
摘要: 代码: 结果: 结论: os.path.abspath(path) :返回path规范化的绝对路径。 os.path.dirname(path) :返回path的目录。 os.path.basename(path) :返回path的文件名。 os.path.split(path) :返回path分割 阅读全文
posted @ 2018-10-24 12:50 WESWES 阅读(251) 评论(0) 推荐(0)
摘要: 代码: 执行: 结果: 结论: argv[0]为程序文件名,argv[1:]为命令行参数。 阅读全文
posted @ 2018-10-24 11:30 WESWES 阅读(165) 评论(0) 推荐(0)