发布时间:2017-12-04 16:04:43
一、问题 官网下载Python2.7(python-2.7.13.msi),安装后启动提示错误,ImportError: No module named site 二、解决 1、这个问题是Python环境变量错误引起的,一般是之前安装过Python,卸载后没把环境变量去掉。 2、或者安装Python时选择了最下面一项,把Pthon加入环境变量,但它默认设置PYTHONHOME=C:\Python27,但.........【阅读全文】
发布时间:2017-12-02 22:29:57
一、android安装apk介绍 安装apk有两种方法 1、调用系统PackageInstaller.apk进行安装 这个系统apk所在目录为:android/packages/apps/PackageInstaller 2、串口命令安装”pm install –r hello.apk” 这个pm命令实现所在目录为:android/frameworks/base/cmds/pm/src/com/android/commands/pm/Pm.java 它们最后都是.........【阅读全文】
发布时间:2017-11-23 19:12:35
一、Android7.0 MTK方案 编译OTA升级包时报错,如下 Could not append verity data!: error: file_write: incomplete writeFailed to write sparse fileTraceback (most recent call last): File "./build/tools/releasetools/add_img_to_target_files", line 376, in <module> main(sys.argv[1:]) File "./b.........【阅读全文】
发布时间:2017-11-21 18:55:40
一、官网的例子 服务端代码 # Echo server programimport socketHOST = '' # Symbolic name meaning all available interfacesPORT = 50007 # Arbitrary non-privileged ports = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.bind((HOST, PORT))s.listen(1)conn, addr =.........【阅读全文】
发布时间:2017-11-21 13:43:04
A进程代码 #encoding=utf-8__author__ = 'outofmemory.cn'from multiprocessing.connection import Listeneraddress = ('localhost', 6000) # family is deduced to be 'AF_INET'listener = Listener(address, authkey='secret password')while True: conn = listener.accept() print 'c.........【阅读全文】