을 실행하지 않습니다하고 IDLE에서 잘 작동 이클립스 파이썬 3. 그러나파이썬 스크립트 내가 쓴 숙제에 대해 다음을 통해 IDLE에서 확인 TextMate를, 이클립스
를 실행, 나는 TextMate를에서 실행하려 Mac에서 파이썬 3을 가리 키기 위해 여기에서 찾은 새로운 라인 1을 사용합니다. 그것은 파이썬 3을 실행하는 것 같지만 오류를 반환합니다. 그것은 말합니다 : EOFError : EOF 라인을 읽을 때. 아래 라인 5를 참조하십시오.
누구나 알 수 있습니까?
나는이 TextMate 문제가 숙제 과제의 일부가 아니므로 숙제를 얻으 려하지 않습니다. 난 그냥 TextMate에 사용되는 파이썬 3로
#! /usr/local/bin/python3
#
# Tests user string against two conditions.
#
user_string = input("Enter a string that is all upper case and ends with a period: ")
if user_string.isupper() and user_string.endswith("."):
print("Your string met both conditions.")
else:
if user_string.isupper():
print("Your string does not end with a period.")
elif user_string.endswith("."):
print("Your string is not all upper.")
else:
print("Your string failed both conditions.")
숙제 도움을 요청하는 데는 문제가 없습니다. 숙제 할 것을 우리에게 요구하지 않는 한. – Falmarri
감사합니다. 알겠습니다. – Farrell