Python pyinstaller convert py file as *.exe file

pyinstaller --onefile PythonTest9.py

image

 

 

import uuid
import datetime
import time

def get_uuid_time():
    return f'{uuid.uuid4().hex}_{datetime.datetime.now().strftime("%Y%m%d%H%M%S%f")}'

def get_time_uuid():
    return f'{datetime.datetime.now().strftime("%Y%m%d%H%M%S%f")}_{uuid.uuid4().hex}'

arr=range(1,10001)
for a in arr:
    print(f'{a},{get_time_uuid()}')
    print(f'{a},{get_uuid_time()}')
    print()
    time.sleep(1)

 

 

 

 

 

image

 

 

image

 

 

 

 

image

 

posted @ 2025-11-21 23:40  FredGrit  阅读(10)  评论(0)    收藏  举报