python2 input 쓴듯 그 input 함수 위험함 코드실행이 가능하기 때문에.. python3 input 써야함
ss(175.124)2020-10-06 16:54
답글
백준에서 파이썬3로 input한건데 저렇게 되더라고 도대체 뭘까
익명(121.133)2020-10-06 16:55
답글
음 그건 이상하네 input => raw_input으로 했을땐 잘 됌? 그럼 python 버전 차이가 맞는데
ss(175.124)2020-10-06 16:58
답글
raw_input은 정상으로 되는데 백준에서 런타임 에러가 나버리네
익명(121.133)2020-10-06 17:06
답글
ide 오류는 왜그런지 찾았음. window 8.1미만은 py3이 안되네
익명(121.133)2020-10-06 17:06
답글
찾아보니까 답이 없다... c++로 풀어야지 답변 고마워
익명(121.133)2020-10-06 17:32
python2 에서 너가 원하는 input 쓸라면 raw_input 쓰셈
ss(175.124)2020-10-06 16:54
뭘 기준으로 분리를 할까?
Node.js(heartleth)2020-10-06 16:54
답글
python 문서보면 알 수 있음 ' ' 를 기준으로 분리함 str.split(sep=None, maxsplit=-1)¶ If sep is not specified or is None, a different splitting algorithm is applied: runs of consecutive whitespace are regarded as a single separator, and the result will contain no empty strings at the start or end if the string has leading or trailing whitespace
python2 input 쓴듯 그 input 함수 위험함 코드실행이 가능하기 때문에.. python3 input 써야함
백준에서 파이썬3로 input한건데 저렇게 되더라고 도대체 뭘까
음 그건 이상하네 input => raw_input으로 했을땐 잘 됌? 그럼 python 버전 차이가 맞는데
raw_input은 정상으로 되는데 백준에서 런타임 에러가 나버리네
ide 오류는 왜그런지 찾았음. window 8.1미만은 py3이 안되네
찾아보니까 답이 없다... c++로 풀어야지 답변 고마워
python2 에서 너가 원하는 input 쓸라면 raw_input 쓰셈
뭘 기준으로 분리를 할까?
python 문서보면 알 수 있음 ' ' 를 기준으로 분리함 str.split(sep=None, maxsplit=-1)¶ If sep is not specified or is None, a different splitting algorithm is applied: runs of consecutive whitespace are regarded as a single separator, and the result will contain no empty strings at the start or end if the string has leading or trailing whitespace
파이썬을 안쓰면 해결됨
ㄹㅇ