- 博客(2)
- 资源 (1)
- 收藏
- 关注
转载 python中执行shell命令的几种方式
最近有个需求就是页面上执行shell命令,第一想到的就是os.system, os.system('cat /proc/cpuinfo') 但是发现页面上打印的命令执行结果 0或者1,当然不满足需求了。 尝试第二种方案 os.popen() output = os.popen('cat /proc/cpuinfo') print output.read()
2016-07-11 14:38:47 1757
转载 java linkedlist 和 arraylist的区别
一般大家都知道ArrayList和LinkedList的大致区别: 1.ArrayList是实现了基于动态数组的数据结构,LinkedList基于链表的数据结构。 2.对于随机访问get和set,ArrayList觉得优于LinkedList,因为LinkedList要移动指针。 3.对于新增和删除操作add和remove,LinedList比较占优势,因
2016-07-08 14:36:52 388
Python Cookbook 第三版中文版,非扫描
2018-09-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人