者tyjh (....)
看板Python
標題[問題] 求問一題
時間Mon Sep 10 17:53:57 2018
https://zerojudge.tw/ShowProblem?problemid=c461
此為原題
本人初學
輸入三個常數 一開始就卡住了
x= int(input())
y= int(input())
z= int(input())
請問要怎麼用 input 輸入時 不會換行?
用 end=""嗎? 不知要加在哪裡
如範例中的 0 0 1 等
而不是 0
0
1
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.203.74.58
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1536573239.A.5EB.html
※ 編輯: tyjh (203.203.74.58), 09/10/2018 17:55:12
推 hwChang: 僅 input 一次, 用空格切開 09/10 18:07
→ thefattiger: 題目是網站裡面的哪一題? 09/10 18:07
推 oToToT: x, y, z = map(int, input().split()) 09/10 19:26
※ 編輯: tyjh (203.203.74.58), 09/10/2018 19:43:09
→ tyjh: 貼錯網址 是邏輯運算子那題 09/10 19:43
→ renshin: 三樓正解 09/11 09:52