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: ... 阅读全文
posted @ 2017-08-29 23:36 aWolfMan 阅读(289) 评论(0) 推荐(0)
摘要:import tkinter.messagebox try: fileContent = open("abnormal.txt") fileContent.close() print("over") #把异常消息赋予一个"ex"变量 except Exception as ex: print(ex) tkinter.messagebox.showinfo... 阅读全文
posted @ 2017-08-29 22:46 aWolfMan 阅读(1578) 评论(0) 推荐(1)
摘要:python3爬虫 - cookie登录实战: http://blog.csdn.net/pipisorry/article/details/47948065 大神网址链接: http://blog.csdn.net/pipisorry 阅读全文
posted @ 2017-08-27 22:03 aWolfMan 阅读(120) 评论(0) 推荐(0)
摘要:1. 查看文本中的单行是否是空行 2. 替换文件中的指定字符 阅读全文
posted @ 2017-08-27 21:52 aWolfMan 阅读(161) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2017-08-22 23:05 aWolfMan 阅读(797) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2017-08-21 23:48 aWolfMan 阅读(238) 评论(0) 推荐(0)
摘要:操作相关的文件: 阅读全文
posted @ 2017-08-20 21:21 aWolfMan 阅读(248) 评论(0) 推荐(0)
摘要: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.... 阅读全文
posted @ 2017-08-16 21:49 aWolfMan 阅读(358) 评论(0) 推荐(0)
摘要: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://... 阅读全文
posted @ 2017-08-14 23:00 aWolfMan 阅读(318) 评论(0) 推荐(0)