笔记
文章平均质量分 52
leak235
这个作者很懒,什么都没留下…
展开
-
tkinter学习笔记之messagebox
messagebox是普通windows编程中经常用到的,目的是显示个信息框如图:在python2.7他的调用方式是:from tkMessageBox import * showinfo(message=“hello”)python3.x改为from tkinter.messagebox import * showinfo(mess原创 2016-01-16 22:13:02 · 16802 阅读 · 1 评论 -
thinker学习笔记processbar
今天继续学习了thinker的编程,学习了进度条processbar的用法有几点体会说下1、tkinter的控件很多,默认控件很少,很丑陋其实python自带的tkinter还带了ttk和tix两个库那两个库的控件基本就够用了2、对于tkinter控件的option(属性值),直接通过字典的方式读取3、processbar控件,一共内置三个函数start(),step(原创 2016-01-07 00:56:38 · 1139 阅读 · 0 评论 -
python tkinter 学习笔记(1)
本人乃是一业余程序员原来写程序一直用C或C++,GUI界面编程用VC++自从用过Python之后,一发不可收拾,简洁,可读性好,跨平台,与c风格衔接顺畅,再加上丰富的扩展功能但Python也有个毛病就是版本综合症,到底是2.7呢还是3.x呢2.7的资料多,扩展多,但3.x设计的更合理,纠结ing看了很多Python书,最终还是直接上3.x,即使是前期的学原创 2016-01-01 23:55:31 · 1031 阅读 · 2 评论 -
python httplib学习笔记
httplib2是一个非常好的http协议客户端库,以下几个特性,我比较喜欢:1、缓存cacheimport httplib2h = httplib2.Http(".cache")//这个地方指出存放缓存的目录,默认在程序运行的目录下建立resp, content = h.request("http://www.baidu.com")2、支持https具体代码就不上了,h.request("htt原创 2016-01-02 19:28:23 · 462 阅读 · 0 评论 -
python3.5安装加密模块pycrypto
需要研究AES加密,以为python自带AES模块,但让我失望的是目前的3.5版是不带的参考手册应该使用A.M. Kuchling编写的pycrypto模块,官方网站http://www.pycrypto.org/但下载后郁闷了,使用setup.py install命令后出错,需要vcvarsall.bat,缺c的编译器,模块的程序是用c实现的所以需要编译再使用pip install原创 2016-01-05 23:29:50 · 10386 阅读 · 4 评论 -
在python3.5编写了一个AES加解密程序
如题,完美支持utf-8#coding: utf8import sysfrom Crypto.Cipher import AESfrom binascii import b2a_hex, a2b_hex class prpcrypt(): def __init__(self, key): self.key = key self.mode = A原创 2016-01-06 00:17:19 · 9004 阅读 · 2 评论 -
tkinter学习笔记之filedialog
在GUI编程中,打开文件、目录等是常见操作https://code.csdn.net/snippets/1557954from tkinter.filedialog import *from tkinter import *filename = askopenfilename(initialdir ='E:/Python')print filename除了askopenfilename外,还有函数...原创 2016-01-16 23:42:12 · 28987 阅读 · 0 评论