- 博客(3)
- 收藏
- 关注
原创 Python - 刷博客浏览数
今天我新发表了两篇博文,然后发现才发表没几分钟阅读数就非零了。原来自己通过目录链接打开也是被统计的。今天刚学了Requests几个简单的方法,就尝试了一下可不可以通过请求的方式刷阅读量,还真是可以,哈哈哈,对于一个菜鸟感觉小有成就,在这里记录一下 requests包不在标准库了,所以要在cmd里运行pip install requests就会联网下载安装。安装后运行pip show reques
2015-10-05 17:53:45 871
原创 Python - Merge Sort
import random def merge(arr, l, p, r): left = arr[l: p+1] #copy left part, including p right = arr[p+1: r+1] #copy right part, start from p+1 i = 0 j = 0 k = l #start from the lef
2015-10-05 15:07:55 2395
原创 Python - Quick Sort
import random def partion(arr, l, r): ''' Divid the array The left part is less than the pivot The right part is greater than the pivot Then return the position of pivot '''
2015-10-05 13:45:51 533
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人