강의

멘토링

커뮤니티

Inflearn Community Q&A

hyukster90666's profile image
hyukster90666

asked

Introduction to Python for Programming and Data Science

File Handling1

line.strip()=="": continue 질문

Written on

·

147

0

line.strip()=="": continue 해서 좌우 여백 제거한 게 빈칸이면 반복문 넘겨서 출력을 하지마라라고 했는데

line=="":하면 왜 똑같이 적용이 안되는걸까요? 좌우여백이 있다는건가요? 이해가 안됩니다.

bigdatapython

Answer 1

0

TeamLab님의 프로필 이미지
TeamLab
Instructor

음 정확히 뜻을 이해를 못했는데 line.strip()이 양옆에 빈칸을 제거하는 명령어입니다.

hyukster90666's profile image
hyukster90666

asked

Ask a question