涉及文档/edx/app/edxapp/lms.env.json #|env文件 里包含一些功能开关/edx/app/edxapp/cms.env.json #|/edx/app/edxapp/lms.auth.json #|auth 文件包含一些密码 权限相关/edx/app/edxapp/cms...
分类:
其他好文 时间:
2015-07-19 23:10:19
阅读次数:
169
「python」: arp脚本的两种方法第一种是使用arping工具:#!/usr/bin/env pythonimport subprocessimport sysimport redef arping(ipaddress = "192.168.1.1"): p = subprocess.P...
分类:
编程语言 时间:
2015-07-19 19:34:05
阅读次数:
233
#!/usr/bin/env python#encoding=utf-8 import urllib2,sys,re,os#url="http://www.dianping.com/search/category/1/20/g122"def httpCrawler(url): content ...
分类:
其他好文 时间:
2015-07-16 07:12:31
阅读次数:
156
摘自:http://www.jb51.net/article/60641.htm#!/usr/bin/env python import globimport osos.chdir(“./”)for file in glob.glob(“*.py”):print file print “####.....
分类:
编程语言 时间:
2015-07-14 22:27:25
阅读次数:
225
jbytearray转c++byte数组C代码jbyte*arrayBody=env->GetByteArrayElements(data,0);jsizetheArrayLengthJ=env->GetArrayLength(data);BYTE*starter=(BYTE*)arrayBody;...
分类:
其他好文 时间:
2015-07-14 20:16:51
阅读次数:
209
使用Python的smtp模块,可以十分方便的编写自己的smtp客户端,来发送邮件。现在发现,不能使用腾讯的smtp服务器去法送,但是可以使用163的smtp服务器去发送邮件。
直接上代码吧
#!/usr/bin/env python
'''
a simple smtp client
'''
import smtplib
from email.mime.text ...
分类:
编程语言 时间:
2015-07-14 18:07:01
阅读次数:
124
使用python调用playbook和shell脚本
我的python脚本为:
#!/usr/bin/env python
import ansible.playbook
from ansible import callbacks
from ansible import utils
import json
import commands
status, result = commands....
分类:
其他好文 时间:
2015-07-13 20:42:57
阅读次数:
250
STA分析前的env建立,包括clock,extern attributes,other DRC等
分类:
其他好文 时间:
2015-07-13 20:08:00
阅读次数:
422
__author__?=?‘Administrator‘
#/usr/env/bin?python
‘‘‘
??this?is?document
‘‘‘
class?Event(object):
????‘‘‘
??????事件初始化的一个方式
????‘‘‘
????def?__init__(self,event...
分类:
编程语言 时间:
2015-07-13 06:41:08
阅读次数:
131
命令行生成各种文件模板为python2.7制造 构件包括命令行参数处理 文件读写 文件夹创建网络读取 #!/usr/bin/env python# -*- coding: utf-8 -*-# # Copyright (C) simplicity ## This program is free...
分类:
其他好文 时间:
2015-07-12 09:37:11
阅读次数:
130