版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38002337/article/details/79831486
# 重启程序
def restart_program():
print("重启。。。。。。。")
python = sys.executable
os.execl(python, python, * sys.argv)
# 重启程序
def restart_program():
print("重启。。。。。。。")
python = sys.executable
os.execl(python, python, * sys.argv)