摘要: 摘要: pyserial module: https://github.com/tbusf/pyserial Python使用pyserial进行串口通信:http://blog.csdn.net/log1100/article/details/54380325 串口通讯的python模块——pyS 阅读全文
posted @ 2017-09-05 23:13 aWolfMan 阅读(6282) 评论(2) 推荐(1) 编辑
摘要: import matplotlib.pyplot as plt #plt用于显示图片 import matplotlib.image as mping #mping用于读取图片 import datetime as dt import matplotlib.dates as mdates from pylab import * def draw_trend_chart(dates,y): ... 阅读全文
posted @ 2017-09-02 14:06 aWolfMan 阅读(8319) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(275) 评论(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 阅读(1524) 评论(0) 推荐(1) 编辑
摘要: python3爬虫 - cookie登录实战: http://blog.csdn.net/pipisorry/article/details/47948065 大神网址链接: http://blog.csdn.net/pipisorry 阅读全文
posted @ 2017-08-27 22:03 aWolfMan 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1. 查看文本中的单行是否是空行 2. 替换文件中的指定字符 阅读全文
posted @ 2017-08-27 21:52 aWolfMan 阅读(146) 评论(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 阅读(770) 评论(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 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 操作相关的文件: 阅读全文
posted @ 2017-08-20 21:21 aWolfMan 阅读(233) 评论(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 阅读(334) 评论(0) 推荐(0) 编辑