07 2015 档案

Python 之字节转换
摘要:1 # coding: utf-8 2 3 def bytes2human(n): 4 """ 5 >>> bytes2human(10000) 6 9K 7 >>> bytes2human(100001221) 8 95M 9 """10 ... 阅读全文

posted @ 2015-07-14 15:04 刘[小]倩 阅读(815) 评论(0) 推荐(0) 编辑

python 之 模拟GET/POST提交
摘要:以 POST/GET 方式向 http://127.0.0.1:8000/test/index 提交数据。 1 # coding:utf-8 2 import httplib 3 import urllib 4 5 class HttpClient(object): 6 METHOD_PO... 阅读全文

posted @ 2015-07-13 14:57 刘[小]倩 阅读(1338) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示