1. 先准备一个tab.py的脚本
shell> cat tab.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/usr/bin/python
|
2. 查看Python默认的模块存放地址
1 2 3 4 5 6 7 |
[[email protected] ~] # python
|
3. 拷贝该脚本到默认模块存放路径
1 |
cp tab.py /usr/lib64/python2 .6/
|
4. 现在可以用了