본문 바로가기

DEV

이클립스에서 한글사용 깨짐 Windows - Preferences - General - Content Types - Text 에서 해당 파일의 Default encoding 을 'MS949'로 주고 UPDATE하면 됨 리눅스의 경우는 EUC-KR을 하면 됨. 상단에 # -*- coding:utf-8 -*- 는 잊지말고 넣어주고` 더보기
java 오픈소스 라이브러리 http://www.theopensourcery.com/javaopens.htm http://java-source.net/ http://www.manageability.org/blog/opensource 더보기
Uninstall 레지스트 가져오기 from winreg import * t = OpenKey(HKEY_LOCAL_MACHINE,r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",2,KEY_ALL_ACCESS) for i in range(1024): try: subkey_name = EnumKey(t, i) o_subkey = OpenKey(t, subkey_name) subkey = QueryValueEx(o_subkey,"DisplayName") subkey1 = QueryValueEx(o_subkey,"InstallLocation") print ('%30s || %s' % subkey, subkey1) except WindowsError: pass 더보기
레지스트 건드리기 #추가/삭제에 어떤것이 올라와 있는지 확인 from winreg import * t = OpenKey(HKEY_LOCAL_MACHINE,r"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",0,KEY_ALL_ACCESS) try: i = 0 while True: subkey = EnumKey(t, i) if subkey[0:1] != "{": print (subkey) i += 1 except WindowsError: # WindowsError: [Errno 259] No more data is available pass 더보기
날로 먹는 Django 웹 프로그래밍 강좌 http://www.hannal.net/think/01-python_django_lecture/ 더보기
WingWare Python IDE 학생또는 오픈소스 프로젝트 참여자는 무료 상업용 개발환경이면 비용을 지불해야됨 http://www.wingware.com/downloads 더보기
python 한글 UTF-8 에서 글자가 깨지거나, 오류 메세지가 나오는경우 EUC-KR을 준다 더보기
데이터 구조 #2 스택(stack)의 리스트 >>> stack = [1, 2, 3] >>> stack.append(4) >>> stack.append(5) >>> stack [1, 2, 3, 4, 5] >>> stack.pop() 5 >>> stack [1, 2, 3, 4] >>> stack.pop() 4 >>> stack.pop() 3 >>> stack [1, 2]--------------------------------------------------------------------------큐(queue)리스트>>> from collections import deque #popleft를 사용하기 위해추가 >>> queue = deque(["김", "이", "최"]) >>> queue.append("강") # Terr.. 더보기