Получение ошибки SyntaxWarning: объект 'str' не может быть вызванPython

Программы на Python
Anonymous
Получение ошибки SyntaxWarning: объект 'str' не может быть вызван

Сообщение Anonymous »

Код: Выделить всё

def main():
print("""Bagels, a deductive logic game.
By Al Sweigart al@inventwithpython.com

I am thinking of a {}-digit number with no repeated digits.
Try to guess what it is. Here are some clues:
When I say:        That means:
Pico           One digit is correct but in the wrong position.
Fermi          One digit is correct and in the right position.
Bagels         No digit is correct.

For example, if the secret number was 248 and your guess was 843, the
clues would be Fermi Pico.'''(Num_DIGITS))

while True:  #Main game loop.
# This stores the secret number the player needs to guess:
secretNum = getSecretNum()
print("I have thought up a number.")
print(" You have {} guesses to get it.".format(MAX_GUESSES))

СинтаксисПредупреждение: объект 'str' не может быть вызван; возможно, вы пропустили запятую?
print("""Бублики, дедуктивная логическая игра.

Подробнее здесь: https://stackoverflow.com/questions/786 ... t-callable

Вернуться в «Python»