会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GitHub
博客园
Nanakon
jzm17173
上一页
1
···
24
25
26
27
28
29
30
31
32
···
110
下一页
2016年7月31日
sleep
摘要: import time print('......') time.sleep(5) print('......')
阅读全文
posted @ 2016-07-31 21:22 jzm17173
阅读(106)
评论(0)
推荐(0)
Python 推导式
摘要: 列表推导式 字典推导式 集合推导式 生成器推导式
阅读全文
posted @ 2016-07-31 21:08 jzm17173
阅读(90)
评论(0)
推荐(0)
2016年7月28日
日期和时间
摘要: from datetime import datetime, date now = datetime.now() now #datetime.datetime(2016, 8, 13, 23, 7, 47, 768757) print(now.strftime('%Y-%m-%d %H:%M:%S')) #2016-08-13 23:08:04 # 检测是否是闰年 import cal...
阅读全文
posted @ 2016-07-28 23:38 jzm17173
阅读(97)
评论(0)
推荐(0)
目录
摘要: #使用mkdir()创建目录 import os os.mkdir('poems') print(os.path.exists('poems')) #使用rmdir()删除目录 import os os.rmdir('poems') print(os.path.exists('poems')) #使用listdir()列出目录内容 import os os.mkdir('poems') ...
阅读全文
posted @ 2016-07-28 19:50 jzm17173
阅读(104)
评论(0)
推荐(0)
文件
摘要: # 用open()创建文件 fout = open('oops.txt', 'wt') print('Oops, I created a file.', file=fout) fout.close() # 用exists()检查文件是否存在 import os print(os.path.exists('oops.txt')) # True print(os.path.exists(...
阅读全文
posted @ 2016-07-28 19:14 jzm17173
阅读(94)
评论(0)
推荐(0)
pip镜像源
摘要: pip是用国内镜像源 https://pypi.python.org/http://pypi.douban.com/simple/ http://mirrors.aliyun.com/pypi/simple/
阅读全文
posted @ 2016-07-28 13:26 jzm17173
阅读(124)
评论(0)
推荐(0)
enumerate 枚举
摘要:
阅读全文
posted @ 2016-07-28 09:01 jzm17173
阅读(100)
评论(0)
推荐(0)
sys.argv
摘要: Python:sys.argv[]用法
阅读全文
posted @ 2016-07-28 08:59 jzm17173
阅读(113)
评论(0)
推荐(0)
webbrowser
摘要: 可以控制浏览器
阅读全文
posted @ 2016-07-28 07:14 jzm17173
阅读(113)
评论(0)
推荐(0)
2016年7月25日
tag问题
摘要:
阅读全文
posted @ 2016-07-25 18:56 jzm17173
阅读(128)
评论(0)
推荐(0)
上一页
1
···
24
25
26
27
28
29
30
31
32
···
110
下一页
公告
导航
博客园
首页
联系
订阅
管理