[問題] 求問一題

看板Python作者時間6年前 (2018/09/10 17:53), 6年前編輯推噓2(203)
留言5則, 5人參與, 6年前最新討論串1/1
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

09/10 18:07, 6年前 , 1F
僅 input 一次, 用空格切開
09/10 18:07, 1F

09/10 18:07, 6年前 , 2F
題目是網站裡面的哪一題?
09/10 18:07, 2F

09/10 19:26, 6年前 , 3F
x, y, z = map(int, input().split())
09/10 19:26, 3F
※ 編輯: tyjh (203.203.74.58), 09/10/2018 19:43:09

09/10 19:43, 6年前 , 4F
貼錯網址 是邏輯運算子那題
09/10 19:43, 4F

09/11 09:52, 6年前 , 5F
三樓正解
09/11 09:52, 5F
文章代碼(AID): #1RbZytNh (Python)
文章代碼(AID): #1RbZytNh (Python)