본문 바로가기
반응형

전체 글284

[Python] 사전 dic1 = {"item1" : "123", "item2" : 456, "item3" : "data"}dic2 = {} #빈 사전 생성dic3 = dict() #빈 사전 생성 dic1["item4"] = "data2" #키 추가del dic1["item3"] #키 삭제 if "item2" in dic1: #사전에 해당 키가 있는지 확인 i=dic1["item2"]else: i=0 j=dic1.get("item2",0) #위 if 문과 결과 동일 keys=list(dic1) #키 목록 추출 2016. 3. 2.
[Python] 리스트 list1 = ["123","456","abc"] list1[0]#색인은 0부터 (0~2) list1.append("new data")#새 항목 추가 list1.insert(1,"ins")#idx 1위치에 항목 추가 list1[1:2]#idx 1부터 idx 2 이전까지 (idx 1만 출력) list1[1:]#idx 1부터 끝까지 list2=[]#빈 리스트 생성list3=list()#빈 리스트 생성 2016. 3. 2.
[Python] 반복문 data1 = range(1,10) #1~9의 값을 가지는 리스트 생성data2 = 0 for i in data1: print i while data2 < 10: data2+=1 if data2 % 2: print data2, #홀수면 출력 else: continue #짝수면 아래 구문 무시하고 반복문 다시 진행 if data2 == 7: break #data2가 7이면 반복문을 빠져나옴 2016. 3. 2.
[Python] 조건문 #조건문a=1b=2c=3d=4s="show me the money" x=[1,2]y=[1,2] if a < b: print "bbbb"elif b < a: print "aaaa"else: print "aabb" if a < b and b < c and not (d < c): print "dddd" if "money" in s: # 좌측 문자열이 우측 문자열 또는 객체에 포함되어있는지 확인 print "money in string" if x is y: #동일한 객체인지 비교 print "x and y is same object" if x == y: #객체의 값이 같은지 비교 print "x's value and y's value is same" if type(x) is type(y): #객체의 타입이 같은.. 2016. 3. 2.
[Python] 입출력 (stdin, stdout) import sys i=0.5353s="text"t=sys.argv[0] #명령줄 인수를 읽어옴 print "Hello World %.2f %d" % (i,2016)# 파이썬 3에서는 print 다음에 ()가 들어감 ex: print("Hello World %.2f %d" % (i,2016)) print "file name is %s" % (t) print format(i,"10.2f"),format(s,"20s"),"123" #format 함수의 2번째 인자는 포맷지정자 sys.stdout.write("input : ")t=sys.stdin.readline() print t t= raw_input("input : ") # input("input : ") #파이썬3print t 2016. 3. 1.
T wifi Zone 삭제/제거하기 -테스트 환경 베가 LTE-A 젤리빈 & 킷캣 ※킷캣은 현재 삭제가 되어도 T wifi Zone이 검색이 되면 다시 자동으로 연결되는 문제가 발생하여 테스트중입니다. -준비물 1.루팅된 단말기 2.Root Explorer 등 파일 탐색기 3.헥스 에디터 (010Editor 등) [1] /system/bin/wpa_supplicant 추출 Wifi 세팅을 담당하는 /system/bin/wpa_supplicant 파일을 복사하여 외장 메모리 또는 내장 메모리에 복사하여 PC로 이동합니다. [2]Hex Editor로 wpa_supplicant 바이너리 수정 위와 같이 T wifi (Hex값 : 542077696669)으로 시작하는 부분을 모두 찾아서 첫 54를 53등으로 변경한 뒤 저장해줍니다. [3]변경한 .. 2014. 8. 2.
반응형

바로가기