Python使用os.system调用其他脚本并传递参数
调用脚本import os
os.system("python zbxtg.py")调用脚本并传递参数单个参数subject = 'test subject'import os
os.system("python zbxtg.py '%s'" % (subject))多个参数subject = 'test subject'message = 'test...
阅读全文
调用脚本import os
os.system("python zbxtg.py")调用脚本并传递参数单个参数subject = 'test subject'import os
os.system("python zbxtg.py '%s'" % (subject))多个参数subject = 'test subject'message = 'test...
阅读全文
更新packageapt-get update && sudo apt-get dist-upgrade查看系统现有内核dpkg -l|grep linux-image查看最新内核apt-cache search linux-image安装内核apt-get install linux-image-4.19.0-6-cloud-amd64 -y卸载旧内核apt-get rem...
阅读全文
修改/etc/vim/vimrc,在配置文件中增加set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
阅读全文