이것은 내 코드입니다.
age = 11
days = age*52*7
decades = age/10
estimate = round(decades)
summary = "I am " + {} + " days old! Thats about " {} " decades!".format(str(estimate), str(decades))
구문 오류는 어디에 있습니까?
형식 구문을 잘못 사용하고 있습니다. 중괄호는 문자열 안에 들어가므로 :
summary = "I am {} days old! Thats about {} decades!".format(str(estimate), str(decades))
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다