发布时间: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.........【阅读全文】
发布时间:2017-11-20 17:23:58
class father(): def call_children(self): child_method = getattr(self, 'out')# 获取子类的out()方法 child_method() # 执行子类的out()方法class children(father): def out(self): print "hehe"child = children()child.call_children()......【阅读全文】
发布时间:2017-11-09 14:03:58
git apply -v 33ae302.diff 提示 Skipped patch 'custom/mtk/mtk/packages/apps/LiveTV/src/com/mediatek/wwtv/tvcenter/nav/TurnkeyUiMainActivity.java'. 但是目录和文件命名没有改动,怎么打不上去呢 vi 33ae302.diff diff --git a/custom/mtk/mtk/packages/apps/LiveTV/src/com/mediatek/wwtv/tvc.........【阅读全文】