1 运行 sh文件
1 ./code.sh
2 sh code.sh
2 打印路径
Python 打印当前文件相对路径和绝对路径
一、打印相对路径
print(__file__)
二、打印绝对路径
import os
print(os.path.abspath(__file__))
三、打印文件名
import os
print(os.path.dirname(os.path.abspath(__file__)))
3 centos6 yum源配置
依次执行命令
curl -o /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
curl -o /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum makecache
4 NotePad++中如何改变光标?
在键盘上找 Insert ,按这个Insert就可以把横向闪烁光标( _ )修改成竖向闪烁光标样式( | )
横向光标会在你写代码的时候修改前面的代码,把光标移到前面进行修改时,后面的代码也会随之被消除,所以需要把光标修改成竖向显示的样式。