2022年8月14日 星期日

Python a001: 哈囉

 Python a001: 哈囉


#a001: 哈囉

'''

學習所有程式語言的第一個練習題 

請寫一個程式,可以讀入指定的字串,並且輸出指定的字串。


比如:輸入字串 "world", 則請輸出 "hello, world"

'''

s1=  input("請輸入字串-->")

print ("hello",s1)




>>> %Run a001.py

請輸入字串-->world

hello  world

>>> %Run a001.py

請輸入字串-->C++

hello C++

>>> %Run a001.py

請輸入字串-->Taiwan

hello Taiwan

>>> 

沒有留言:

張貼留言

結合桌面視窗介面 (GUI)、雲端資料庫與社群通訊推播的自動化氣象監控系統

視窗介面 (GUI)、雲端資料庫與社群通訊推播的自動化氣象監控系統 這份 gui_app_timer.py 程式是一個 結合桌面視窗介面 (GUI)、雲端資料庫與社群通訊推播的自動化氣象監控系統 。 整體架構採用 事件驅動 (Event-Driven) 與 多執行緒非同步設計...