學習一門新的編程語言時最重要的是興趣,去找到自己的興奮點,這樣才會促使我們不斷的去探索新的內容比如新的函式庫,興趣是最好的老師.
hello python world
下面是我在學習python一個月后終于找到的興趣點

希望初學者們也能盡快找到自己的興趣點,從而擁有學習的動力,python作為一門人性化的高級語言,一定不會讓你失望的。
寫的第一個算是可以連續采訪并列印出結果的程式吧

下面是源代碼
polling_active=True
prompts={}
while polling_active:
name = input('sir,please tell us what is your name? ')
print('Hello ' + name)
message=input("could i ask you another question(yes/no)")
if message == 'no':
continue
repeat = input('please tell us which city do you want to go')
print("i will give you a chance to arrive it")
prompts[name]=message
attention = input('would anyone else want to participate in the interview?(yes/no) ')
if attention == 'no':
break
for name,message in prompts.items():
print(name + " would like to go to" + repeat + ".")
不喜勿噴哦,第一次上csdn發帖

uj5u.com熱心網友回復:
uj5u.com熱心網友回復:
uj5u.com熱心網友回復:
不錯不錯,加油!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/136017.html
標籤:非技術區
上一篇:學習CentOS6這一篇就夠了
