| ???? Python ??? | ??4?? ???????? | |
|---|---|---|
| ???? | ???? | ???? |
?????Python???????????????κζ???????? ???? ??????????????????????????????? ???? ?????????????? ???? ????
???????????????????
????????????????????????????????????????????????Python???????????????????
???????????????????????????????????????????????????????????г???
??α?дPython????
??????????????Python????????????
1. ????????????????
2. ?????????е???????
3. ??????и????????????????????????????????????????е?Python???????????.py???檔
4. ???н?????????python program.py???????IDLE???г?????????????????????????е??????
# Filename : var.py
i = 5
print i
i = i + 1
print i
s = '''This is a multi-line string.
This is the second line.'''
print s
????????code/var.py??
$ python var.py
5
6
This is a multi-line string.
This is the second line.
?????????????????????ι?????????????????????????=?????????????????????5????????i??????г??????????????????????????飬??????????????????i???5???????????????????????print?????i???????????????????????????
????????i?д洢?????1??????????i???????????????????????6??
??????????????????????????????????????s?????????
??C/C++??????????
??????????????????????????????????????????????
| ???? | ????? | ???? |
|---|---|---|
| ???????? | ??? | ????????????? |