08 2017 档案
摘要:from tkinter import * import os def button_click1(): try: filePath = r'D:\CloudMusic' os.system("explorer.exe %s"%filePath) app.destroy() except Exception as ex: ...
阅读全文
摘要:import tkinter.messagebox try: fileContent = open("abnormal.txt") fileContent.close() print("over") #把异常消息赋予一个"ex"变量 except Exception as ex: print(ex) tkinter.messagebox.showinfo...
阅读全文
摘要:python3爬虫 - cookie登录实战: http://blog.csdn.net/pipisorry/article/details/47948065 大神网址链接: http://blog.csdn.net/pipisorry
阅读全文
摘要:1. 查看文本中的单行是否是空行 2. 替换文件中的指定字符
阅读全文
摘要:from tkinter import * def write_to_file(): fileContent = open("deliveries.txt","a") fileContent.write(depot.get()+"\n") fileContent.write(description.get()+"\n") fileContent.write(ad...
阅读全文
摘要:import pygame.mixer from tkinter import * sounds = pygame.mixer sounds.init() def wait_finish(channel): while channel.get_busy(): pass def button_click1(): s = sounds.Sound("chimes...
阅读全文
摘要:def get_info_byName(name): result_f = open("participant_info.txt") s = {} for each_line in result_f: (s['id'],s['name'],s['country'],s['average'],s['board'],s['age']) = each_line....
阅读全文
摘要:from email.mime.text import MIMEText from email.header import Header from smtplib import SMTP_SSL import urllib.request import time def get_weather_msg(): page = urllib.request.urlopen("http://...
阅读全文

浙公网安备 33010602011771号