Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 2.6.5
>>> 1+2
3
>>> 3/1.24
2.4193548387096775
>>> a=1
>>> b=2
>>> c=3
>>> a+b+c
6
>>> a="Python"
>>> print a
Python
>>> a=2+3j
>>> b=3
>>> a*b
(6+9j)
>>> a=3
>>> if a>1:
print "a>1"
a>1
>>> for a in [1,2,3]:
print a
1
2
3
>>> i=0
>>> while 1<3:
i=i+1
print i
예전부터 하긴햇는데 제대로하는건 이번이 첨인듯 ㅠㅠ 신세계이긴한데 아직 문법이 미숙
'과거의 컴퓨터 공부 > Python' 카테고리의 다른 글
lambda(),struct.pack, struct.unpack (0) | 2014.09.05 |
---|---|
sys모듈 사용 (0) | 2014.08.29 |
자판기.py (0) | 2014.08.28 |
자료형 (0) | 2014.08.28 |