파이썬 질문..
-
게시물 수정 , 삭제는 로그인 필요
import datetime
now=datetime.datetime.now()
if 3 <= now.month <=5 :
print("이번 달은{}월로 봄입니다".format(now.month))
if 6 <= now.month <=8 :
print("이번달은{}월로 여름입니다".format(now.month))
if 9 <= now.month <=11 :
print("이번달은{}월로 가을입니다".format(now.month))
if now.month==12 or 1 <= now.month <=2 :
print("이번달은{}월로 겨울입니다".format(now.month))
이 코딩을 비쥬얼 스튜디어코드로 실행하면..
9월달로 가을입니다 라는 값이 출력되는데
파이참으로 똑같이 입력하고 Run버튼 누르면 실행이 안되고
Process finished with exit code 2 이런 에러가 뜨는데..왜 이런 건가요
import datetime
now=datetime.datetime.now()
if 3 <= now.month <=5 :
print("이번 달은{}월로 봄입니다".format(now.month))
if 6 <= now.month <=8 :
print("이번달은{}월로 여름입니다".format(now.month))
if 9 <= now.month <=11 :
print("이번달은{}월로 가을입니다".format(now.month))
if now.month==12 or 1 <= now.month <=2 :
print("이번달은{}월로 겨울입니다".format(now.month))
이 코딩을 비쥬얼 스튜디어코드로 실행하면..
9월달로 가을입니다 라는 값이 출력되는데
파이참으로 똑같이 입력하고 Run버튼 누르면 실행이 안되고
Process finished with exit code 2 이런 에러가 뜨는데..왜 이런 건가요
#파이썬 질문 #파이썬 질문 사이트 #파이썬 질문 대답 #파이썬 질문 만들기 #파이썬 질문 커뮤니티 #파이썬 질문 반복 #파이썬 질문 명령어 #파이썬 면접 질문 #파이썬 백엔드 면접 질문 #파이썬 코드 질문