用户:Herobrine__查看:0 回复:0 评论:0 创建时间:2021-05-15T15:14:28
【作品展示】

【作品介绍】
创建一个qt—py文件,节省时间,将其放入需要的路径里,运行完点c喵
【作品源代码】
nnname=input('name:')
def qtpy(name):
s='喵 '+name+'\n'+'move '+name+'.py '+name+'\n'+'del qtpy.c喵'
txt = open('qtpy.c喵', 'w')
txt.write(s)
txt.close()
ss='''from import
from PySide2.QtCore import *
from PySide2.QtWidgets import *
from PySide2.QtGui import *
class (QMainWindow,Ui_gif):
def __init__(self):
super().__init__()
self.setup()
self.show()
def setup(self):
pass
if __name__ == '__main__':
app = QApplication(sys.argv)
window = ()
sys.exit(app.exec_())'''
txtt = open(name+'.py', 'w')
txtt.write(ss)
txtt.close()
qtpy(nnname)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn