随笔分类 -  python

摘要:1 # -*- coding: utf-8 -*- 2 3 # Form implementation generated from reading ui file 'Mainform.ui' 4 # 5 # Created by: PyQt5 UI code generator 5.11.2 6 # 7 # WARNING! All changes made in... 阅读全文
posted @ 2018-09-06 02:20 aloneOnWorld 阅读(523) 评论(0) 推荐(0)
摘要:1 # -*- coding: utf-8 -*- 2 from Mainform import Ui_Frame 3 4 import sys 5 from PyQt5.QtWidgets import QApplication, QMainWindow,QFrame,QProgressDialog,QMessageBox,QWidget 6 from PyQt5.QtCore ... 阅读全文
posted @ 2018-09-06 02:18 aloneOnWorld 阅读(3901) 评论(0) 推荐(0)
摘要:1 def OnDeleteClick(self, event): 2 import os 3 dlg = wx.FileDialog(self,message=u"保存文件", 4 defaultDir=os.getcwd(), 5 ... 阅读全文
posted @ 2018-04-18 00:04 aloneOnWorld 阅读(581) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- __author__ = 'Alon' __date__ = '2017/8/14 18:38' import sys reload(sys) sys.setdefaultencoding('utf8') import smtplib import time from datetime import datetime from email.mim... 阅读全文
posted @ 2017-08-15 00:37 aloneOnWorld 阅读(435) 评论(0) 推荐(0)
摘要:1 # -*- coding:utf-8 -*- 2 3 import os 4 import sqlite3 5 import sys 6 reload(sys) 7 sys.setdefaultencoding('utf8') 8 9 def get_con(func): 10 data_path = r'../db.sqlite3' 11 def s... 阅读全文
posted @ 2017-03-20 23:48 aloneOnWorld 阅读(1231) 评论(0) 推荐(0)
摘要:from xlrd import open_workbookfrom xlutils.copy import copyimport sysreload(sys)sys.setdefaultencoding('utf-8') def replaceexcel(file_path,replacedic) 阅读全文
posted @ 2017-02-17 00:12 aloneOnWorld 阅读(2057) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*-__author__ = 'Alon'__date__ = '2017/2/9 22:43'import Tkinterimport tkFileDialogclass MainFrame(Tkinter.Frame): def __init__(sel 阅读全文
posted @ 2017-02-10 02:51 aloneOnWorld 阅读(333) 评论(0) 推荐(0)