#20508: python求救


iamgond (gond)

學校 : 不指定學校
編號 : 114718
來源 : [111.184.205.10]
最後登入時間 :
2023-09-19 00:13:18
e700. 星座 -- 트와이스 | From: [111.184.205.10] | 發表日期 : 2020-02-01 00:28

m,d=map(int,input().split('/'))

請問這行那裡錯了

 
#20513: Re:python求救


iamgond (gond)

學校 : 不指定學校
編號 : 114718
來源 : [111.184.205.10]
最後登入時間 :
2023-09-19 00:13:18
e700. 星座 -- 트와이스 | From: [111.184.205.10] | 發表日期 : 2020-02-01 15:03

 

抱歉,我找到答案了,應該是我打
while 1:
造成無限迴圈,請問這題該怎麼停止




 
#22803: Re:python求救


fire5386 (becaidorz)

學校 : 國立清華大學
編號 : 115822
來源 : [59.115.180.44]
最後登入時間 :
2024-05-03 16:46:17
e700. 星座 -- 트와이스 | From: [114.45.7.108] | 發表日期 : 2020-10-02 21:48

 

抱歉,我找到答案了,應該是我打
while 1:
造成無限迴圈,請問這題該怎麼停止





讀到EOF結束

 
#23261: Re:python求救


goozak123@gmail.com (李艾登)

學校 : 不指定學校
編號 : 137908
來源 : [220.143.163.13]
最後登入時間 :
2021-01-21 22:04:29
e700. 星座 -- 트와이스 | From: [220.143.106.89] | 發表日期 : 2020-11-01 23:41

 

抱歉,我找到答案了,應該是我打
while 1:
造成無限迴圈,請問這題該怎麼停止





讀到EOF結束


beacuse you did not define what you wanted to do in this while loop so it just kept on looping so you maybe should do something like this 

x = 1

while(x=1):

    do somthing 

so it whould only do that thing while the variable x = 1

 

 
#26867: Re:python求救


406490150@gms.tku.edu.tw (我是朱朱)

學校 : 國立交通大學
編號 : 139794
來源 : [140.113.236.122]
最後登入時間 :
2022-09-03 11:13:16
e700. 星座 -- 트와이스 | From: [1.172.253.7] | 發表日期 : 2021-08-29 01:04

 

抱歉,我找到答案了,應該是我打
while 1:
造成無限迴圈,請問這題該怎麼停止





讀到EOF結束


beacuse you did not define what you wanted to do in this while loop so it just kept on looping so you maybe should do something like this 

x = 1

while(x=1):

    do somthing 

so it whould only do that thing while the variable x = 1

 



????????????????????????????????????

while (x=1) ???????????????????????????????

x==1  !!!!

 

 

while True:

  try:

    input()

  except EOFError:

    break

 

from sys import stdin

for line in stdin:

  month, day = input().split('/')

 

: )

 
ZeroJudge Forum