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



exercise0301.py


a = 1
print(a)

a = "2"
print(a)

a = 3.0
print(a)
 
# 檔名: exercise0301.py 
# 作者: Kaiching Chang 
# 時間: July, 2014

exercise0302.py


a = True
print(a)
print(not a)
 
# 檔名: exercise0302.py 
# 作者: Kaiching Chang 
# 時間: July, 2014

exercise0303.py


print("*")
print("**")
print("***")
print("****")
print("*****")

# 檔名: exercise0303.py 
# 作者: Kaiching Chang 
# 時間: July, 2014

the end

沒有留言: