首页 > 编程语言 > 详细

python打包代码做.exe文件

时间:2021-03-02 14:32:43      阅读:31      评论:0      收藏:0      [点我收藏+]

步骤:

1.准备一段要实现的代码,如下,是实现:将指定路径下的所有文件的完整路径打印出来

 1 import os
 2 
 3 welcome = """
 4 ####################################################
 5 #                                                  #
 6 #    Ruirui‘s pyinstaller performance progrem      #
 7 #                                                  #
 8 #                   ver.20210302                   #
 9 ####################################################
10 """
11 print(welcome)
12 
13 
14 
15 target_path = input("please input the target file_path :")
16 for root,dir,filename in os.walk(target_path):
17     for name in filename:
18         print(os.path.join(root,name))

2.

python打包代码做.exe文件

原文:https://www.cnblogs.com/RuiRuia/p/14468571.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!