Watch 1 Star 0 Fork 0

Zerolone / pythonstudyPython

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
学习中。。。 spread retract

Clone or download
014.py 457 Bytes
Copy Edit Web IDE Raw Blame History
Zerolone authored 2017-10-23 11:53 . 更新教程
#! /usr/bin/python
# -*- coding: utf-8 -*-
import psutil
import time
'''
'''
#all
#print psutil.net_io_counters(True)
aaaa = psutil.net_io_counters()
print aaa;
'''
bbbb = aaaa.bytes_recv;
#bbbb = aaaa.bytes_sent;
cccc = bbbb;
for i in range(30):
time.sleep(1);
bbbb = psutil.net_io_counters().bytes_recv;
#bbbb = psutil.net_io_counters().bytes_sent;
dddd = bbbb - cccc;
cccc = bbbb;
dddd/=1024;
print dddd;
#print dddd;
'''

Comment ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/Zerolone/pythonstudy.git
git@gitee.com:Zerolone/pythonstudy.git
Zerolone
pythonstudy
pythonstudy
master

Help Search