e025: P36 print() 輸出變數01
Tags : Python
Accepted rate : 0人/0人 (0%) [非即時]
評分方式:
Tolerant

最近更新 : 2024-12-26 11:26

Content

print內若是接變數,那就會輸出變數的內容,請鍵入以下程式,並觀察輸出結果。

a, b, c = 1, 2, 3
print(a)
print(b)
print(c)

若不想讓它跳列,請自行指派end值。請鍵入以下程式,並觀察輸出結果。

a, b, c = 1, 2, 3
print(a, end=' ')
print(b, end=',')
print(c)

Input
Output
Sample Input #1


											
										
Sample Output #1
1
2
3
1 2,3
測資資訊:
記憶體限制: 64 MB
公開 測資點#0 (100%): 1.0s , <1K
Hint :
Tags:
Python
出處:
[管理者: zero(育達管理員) ]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」