用户:
勇敢小豆豆查看:0 回复:0 评论:0 创建时间:2023-05-03T11:41:17
【作品展示】

【作品介绍】
name语言由于无法更新倒闭,先更新为flag
【作品源代码】
import tkinter as tk
from tkinter.messagebox import *
import os
def zhuan_ye():
os.mkdir("C://flaglang")
os.mkdir("C://flaglang//1.0.0")
with open("C://flaglang//1.0.0//main_file.py", "w") as f:
f.close()
with open("C://flaglang//1.0.0//run_file.py", "w") as f:
f.close()
with open("C://flaglang//1.0.0//run_doc.txt", "w") as f:
f.close()
os.startfile("https://www.python.org/ftp/python/3.10.5/python-3.10.5-amd喵.exe")
for i in os.listdir("C://Users//"):
if os.path.isdir("C://Users//"+i):
print(os.listdir("C://users//"+i))
if 'My Documents' in os.listdir("C:/Users//"+i):
link = "C://Users//"+i
break
else:
pass
while True:
try:
with open(link+"//Downloads//python-3.10.5-amd喵.exe", "rb") as f:
f.close()
break
except:
pass
os.startfile(link + "//Downloads//python-3.10.5-amd喵.exe")
showwarning(title="提示", message="请勾选add python to path选项,并安装,请不要改动安装地址,安装完成后创建一个文本文档,将.txt替换为.py,右键选择打开方式,选择从此电脑中查找其他应用,输入C://Users//"+link+"//AppData//Loacal//Programs//Python//Python310//python.exe并点击确定")
with open("C://flaglang//1.0.0//user_name.txt", "w") as f:
f.write(link)
f.close()
quit()
def ye_yu():
showerror(message="暂不支持业余版哦", title="提示")
root = tk.Tk()
root.configure(background="green")
root.geometry("300x300")
root.title("flag安装导向")
zhuanye_var = tk.Button(root, text="专业版", command=zhuan_ye)
zhuanye_var.place(x=70,y=120)
yeyu_var = tk.Button(root, text="业余版", command=ye_yu)
yeyu_var.place(x=180,y=120)
root.mainloop()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn