摘要: 对python源码进行编译 1.生成.pyc文件 import py_compile py_compile.compile('hello.py') 2.优化源码文件 python -O -m py_compile 1.py 生成.pyo文件 例子: 1 [root@lvs-master tool]# 阅读全文
posted @ 2019-05-04 15:55 辉bird 阅读(1712) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- import os,sys #计数器,记录错误数来强制结束程序。 err_num=0 TNS={ '172.16.132.3':{'username':'root','password':'xxxx','m 阅读全文
posted @ 2019-05-04 15:51 辉bird 阅读(1041) 评论(0) 推荐(0) 编辑