![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
zhuhuihua__
这个作者很懒,什么都没留下…
展开
-
python实现插入和冒泡排序
开始学习python,看到函数一章,练习之余,写了两个排序小函数def select_sort(n): for i in range(len(n)): for j in range(len(n) -1): if n[j] > n[j + 1]: swap(n, j, j + 1)def swap(n, i, j):原创 2017-03-13 14:20:47 · 1369 阅读 · 0 评论 -
python监控windows的cpu,内存,磁盘
#!user/bin/env python3 # -*- coding: utf-8 -*- import psutilcpu_info={'user':0, 'system':0, 'idle':0, 'percent':0}memory_info={'total':0, 'available':0, 'percent':0, 'used':0, 'free':0}disk_原创 2017-04-13 14:48:51 · 5383 阅读 · 0 评论