上一页 1 ··· 27 28 29 30 31
摘要: 查看当前数据库中的所有表名: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 阅读(209) 评论(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 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 最简单的服务端和客户端代码:服务端:import socket //导入socket模块s=socket.socket() //利用socket中的socket()函数创建套接字对象shost=socket.gethostname() //利用socket模块中的gethostname()函... 阅读全文
posted @ 2016-01-26 18:08 deepbreath 阅读(187) 评论(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 阅读(734) 评论(0) 推荐(0) 编辑
摘要: a='1,2,3,4,5'如何转换为['1','2','3','4','5']b=a.split(',')split函数自动将分隔后的元素以逗号为分隔符存放到列表中用处:有时需要用户输入多个数字以逗号隔开,后面还要单独用到这些数字 阅读全文
posted @ 2016-01-08 10:23 deepbreath 阅读(257) 评论(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 阅读(2357) 评论(0) 推荐(0) 编辑
摘要: 以office2007为例:excel选项》公式》使用公式下的'R1C1引用样式'打上钩显示形式为数字,不打钩显示形式为字母 阅读全文
posted @ 2015-12-27 11:41 deepbreath 阅读(374) 评论(0) 推荐(0) 编辑
摘要: unixtime转北京时间,在单元格内输入:=INT((B2-70*365-19)*86400-8*3600) *.要设置一下单元格格式为y-m-d h:m:s才会正确显示北京时间转unixtime,在单元格内输入:=(B2+8*3600)/86400+70*365+19 阅读全文
posted @ 2015-12-27 11:05 deepbreath 阅读(6358) 评论(0) 推荐(0) 编辑
摘要: 在系统的学习vim之前,先在网上找了些教程大概了解下,因为首先我们要先将vim给用起来,然后在系统的学习过程中不断的充实自己对vim的理解。---------------------------------------------------网上找的资料自己嚼了嚼------------------... 阅读全文
posted @ 2015-12-23 18:50 deepbreath 阅读(168) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-12-09 11:37 deepbreath 阅读(25) 评论(0) 推荐(1) 编辑
上一页 1 ··· 27 28 29 30 31