기본 예제 - "예제중심의 파이썬" 1장 source # -*- coding: utf-8 -*- teamstandings = [('SK', 38,25,0), ('SS',39,27,2), ('KIA',38,29,0), ('LG',36,30,0), ('HH',29,39,1) ] for ts in teamstandings: team, win, lost, draw = ts games = win + lost + draw winrate = float(win) / (win + lost) format = '%s 팀은 총 %d 경기 중 %d 승으로 승률은 %.3f 입니다. ' print(format % (team, games, win, winrate)) #print( team, games, win, winrate ) #..
크롬 브라우저 파이썬 쉘 - https://chrome.google.com/webstore 크롬브라우저에서 파이썬 쉘 사용하기. APP과 확장 프로그램이 있는데, 둘다 차이점은 별로 없다.
웹 파이썬 shell - http://shell.appspot.com/ 설치 필요없이 인터넷에 연결되어 있으면 당장 파이썬을 사용해 볼 수 있는 방법.
일단 aptana 다운받아서 설치하고. Preferences 들어가서 PyDev 항목 선택해서 "Python Interpreters"에 설치된 python 실행파일을 연결해주면 된다. 그리고, "PyDev perspective"를 선택해서 python 구문을 작성한 다음 실행버튼 에서 "Run As " > "Python Run" 을 선택한다. 그러면, Console에 결과가 나온다.
Dreampie1.1.1 & Python 3.2 이상 실행시 UTF-8 어쩌고 하는 에러 발생시 attribute Error가 발생하면. D:\DreamPie\share\dreampie\subp_main.py 의 30번 행을 수정하라. AS-IS sys.setdefaultencoding('utf-8') TO-BE if sys.version_info[0] < 3: sys.setdefaultencoding('utf-8')
DreamPie - The Python shell you've always dreamed about! https://launchpad.net/dreampie Note: We've moved to GitHub: https://github.com/noamraph/dreampie window 7 64bit에 설치 했더니 계속 "add interpreter" 가 안된다. " ~~ --hide-console-window "C:\Python26\python.exe ~~" 에러 발생하는데. 경로를 맞추어 주어도 안된다. 내 파이썬 설치경로는 C:\Python33 인데. ㅋㅋㅋ dreampie-1.2.1-setup.exe 내려받아서 설치하니까 갑자기 된다.