Skip to content

Commit 2a28f7e

Browse files
committed
新增pv测试
1 parent 3ced10c commit 2a28f7e

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

test/test_pv.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
4+
"""
5+
@author: zhanghe
6+
@software: PyCharm
7+
@file: test_pv.py
8+
@time: 2017/7/27 下午3:21
9+
"""
10+
11+
12+
import requests
13+
14+
s = requests.session()
15+
16+
url = 'http://www.ribble.top/article-detials/7'
17+
18+
19+
def fk():
20+
r = s.get(url)
21+
print r.url
22+
23+
24+
def run():
25+
for i in range(1000):
26+
print i,
27+
fk()
28+
29+
if __name__ == '__main__':
30+
run()

0 commit comments

Comments
 (0)