Python 入門指南 V2.00 - 單元 3 範例及練習程式碼



exercise0301.py


1
2
3
4
5
6
7
8
9
10
11
12
a = 1
print(a)
 
a = "2"
print(a)
 
a = 3.0
print(a)
  
# 檔名: exercise0301.py
# 作者: Kaiching Chang
# 時間: July, 2014

exercise0302.py


1
2
3
4
5
6
7
a = True
print(a)
print(not a)
  
# 檔名: exercise0302.py
# 作者: Kaiching Chang
# 時間: July, 2014

exercise0303.py


1
2
3
4
5
6
7
8
9
print("*")
print("**")
print("***")
print("****")
print("*****")
 
# 檔名: exercise0303.py
# 作者: Kaiching Chang
# 時間: July, 2014

the end

沒有留言: