01 2016 档案

摘要: 阅读全文
posted @ 2016-01-26 20:16 deepbreath 阅读(133) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-26 20:15 deepbreath 阅读(105) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-26 20:14 deepbreath 阅读(123) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-26 20:13 deepbreath 阅读(96) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-26 20:13 deepbreath 阅读(158) 评论(0) 推荐(0)
摘要:查看当前数据库中的所有表名:select name from sqlite_master where type='table' order by name查看当前表的字段名:PRAGMA table_info(Alert)文本颜色模块:colorama url:http://www.jb51.ne... 阅读全文
posted @ 2016-01-26 19:05 deepbreath 阅读(214) 评论(0) 推荐(0)
摘要:#coding:utf-8from tkinter import *from tkinter import filedialogroot = Tk()root.filename = filedialog.askopenfilename(initialdir = "d:/",title = "选择... 阅读全文
posted @ 2016-01-26 19:03 deepbreath 阅读(803) 评论(0) 推荐(0)
摘要:最简单的服务端和客户端代码:服务端:import socket //导入socket模块s=socket.socket() //利用socket中的socket()函数创建套接字对象shost=socket.gethostname() //利用socket模块中的gethostname()函... 阅读全文
posted @ 2016-01-26 18:08 deepbreath 阅读(200) 评论(0) 推荐(0)
摘要:首先要将时间中秒后面的.及其以后的部分去掉,否则时间转换函数currenttime=str((datetime.datetime.today())).split('.',2)[0]str((datetime.datetime.today()).replace(hour=0,minute=0,seco... 阅读全文
posted @ 2016-01-12 18:04 deepbreath 阅读(748) 评论(0) 推荐(0)
摘要:a='1,2,3,4,5'如何转换为['1','2','3','4','5']b=a.split(',')split函数自动将分隔后的元素以逗号为分隔符存放到列表中用处:有时需要用户输入多个数字以逗号隔开,后面还要单独用到这些数字 阅读全文
posted @ 2016-01-08 10:23 deepbreath 阅读(271) 评论(0) 推荐(0)
摘要:from pypinyin import pinyina=pinyin(u'杨强',type=FIRST_LETTER) --->此时返回一个列表并赋给a(元素也是列表)b=[] --->新建一个空的列表b用来存放序列解包后的a(元素为字符串)for a in ... 阅读全文
posted @ 2016-01-08 10:20 deepbreath 阅读(2461) 评论(0) 推荐(0)