摘要:
摘要: pyserial module: https://github.com/tbusf/pyserial Python使用pyserial进行串口通信:http://blog.csdn.net/log1100/article/details/54380325 串口通讯的python模块——pyS 阅读全文
摘要:
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): ... 阅读全文
摘要:
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.... 阅读全文