#23066: 第一個Python解題程式報告


k64204@klp.ks.edu.tw (蔡昀叡)

學校 : 不指定學校
編號 : 136496
來源 : [163.16.91.77]
最後登入時間 :
2020-10-20 15:52:58
a001. 哈囉 -- Brian Kernighan | From: [163.16.91.77] | 發表日期 : 2020-10-20 16:00

input() = 會回傳使用者輸入的文字

print() = 可以顯示文字串

當print使用多個參數時,會依照順序顯示每個參數,中間會用空格間隔。

例如 print("hello","hi",1,2) 會顯示 "hello hi 1 2"

因此此題解答如下斜字體部分:

a=input();

print("hello,",a);

 
#23067: Re:第一個Python解題程式報告


asnewchien@gmail.com (david)

學校 : 不指定學校
編號 : 68108
來源 : [1.168.27.116]
最後登入時間 :
2024-03-31 17:58:15
a001. 哈囉 -- Brian Kernighan | From: [36.232.37.237] | 發表日期 : 2020-10-20 16:15

練習 python 的話,這個帳號就解 python 就好,別碰別的,比較容易熟練。

 
#23222: Re:第一個Python解題程式報告


kl0910225@apps.klm.ks.edu.tw (蔡昀叡)

學校 : 不指定學校
編號 : 137703
來源 : [163.16.91.67]
最後登入時間 :
2020-11-13 15:43:04
a001. 哈囉 -- Brian Kernighan | From: [163.16.91.67] | 發表日期 : 2020-10-30 13:04

練習 python 的話,這個帳號就解 python 就好,別碰別的,比較容易熟練。


好的

 

 
ZeroJudge Forum