2013年2月3日
摘要: os.systemPython官方文档关于os.system的描述os.system(command)Execute the command (a string) in a subshell. This is implemented by calling the Standard C function system(), and has the same limitations. Changes to sys.stdin, etc. are not reflected in the environment of the executed command.From:http://docs.pyt 阅读全文
posted @ 2013-02-03 15:48 HQM 阅读(13554) 评论(2) 推荐(0) 编辑
  2013年1月28日
摘要: >adb shell svcAvailable commands: help Show information about the subcommands power Control the power manager data Control mobile data connectivity wifi Control the Wi-Fi manager>adb shell svc powerControl the power managerusage: svc power stayon [true|false|usb|ac] ... 阅读全文
posted @ 2013-01-28 22:10 HQM 阅读(2988) 评论(0) 推荐(0) 编辑
摘要: 查看帮助信息>adb shell serviceUsage: service [-h|-?] service list service check SERVICE service call SERVICE CODE [i32 INT | s16 STR] ...Options: i32: Write the integer INT into the send parcel. s16: Write the UTF-16 string STR into the send parcel.查看Service列表>adb shell servi... 阅读全文
posted @ 2013-01-28 21:53 HQM 阅读(17023) 评论(0) 推荐(0) 编辑
摘要: 发送短信>>adb shell am start -a android.intent.action.SENDTO -d sms:10086--es sms_body "hello" --ez exit_on_sent true>>adb shell input keyevent 66PS: 1、 sms:短信目的号码2、sms_body:短信内容,不可为中文3、双卡不支持(还没验证设置默认卡的情况)拨打电话>>adb shell servicecall phone 2s16 "10086"PS:1、双卡不支持(还没验证 阅读全文
posted @ 2013-01-28 21:36 HQM 阅读(5613) 评论(0) 推荐(0) 编辑
  2012年12月30日
摘要: Tutorial of Basic:http://salilab.org/modeller/tutorial/basic.html一、Modeller环境准备1、Python安装下载地址:http://python.org/ftp/python/2.7.3/python-2.7.3.msi下载完,直接双击安装在CMD命令行里输入python,如果进不了如下所述的python shell,则需要配置环境变量将Python的安装目录“E:\Python27”添加到环境变量的path里面C:\Program Files\Modeller9.11>pythonPython 2.7.2 (defa 阅读全文
posted @ 2012-12-30 04:56 HQM 阅读(6368) 评论(1) 推荐(1) 编辑
摘要: 1、模块作用 chardet模块用来实现字符串/文件编码检测2、chardet下载与安装 下载地址:http://pypi.python.org/pypi/chardet/ 下载chardet后,解压chardet压缩包,直接将chardet文件夹放在应用程序目录下,就可以使用import chardet开始使用chardet了,也可以将chardet拷贝到Python系统目录下,这样你所有的python程序只要用import chardet就可以了。 Python第三方模块中一般会自带setup.py文件,在CMD里切换目录至chardet,然后执行: python setup.py... 阅读全文
posted @ 2012-12-30 02:07 HQM 阅读(1031) 评论(2) 推荐(0) 编辑
  2012年12月21日
摘要: 初学Python,想必大家拿来练习最多的IDE就是Python自带的IDLE了,但是默认的代码配色及语法高亮主题确实很不适应,所以我们需要做个小小的美化。 阅读全文
posted @ 2012-12-21 00:25 HQM 阅读(1185) 评论(0) 推荐(0) 编辑