Код: Выделить всё
types_of_people = 10
x = f"There are {types_of_people} types of people"
binary = "binary"
do_not = "don't"
y = f"Those who know {binary} and those who {do_not}."
print(x)
print(y)
print(f"i said: {x}")
print(f"I also said: '{y}'")
hilarious = False
joke_evaluation = "Isn't that joke so funny?! {}"
print(joke_evaluation.format(hilarious))
w = "This is the left side of ..."
e = "a string with a right side."
print(w + e)
Код: Выделить всё
/usr/local/opt/python/bin/python3.7 /Users/andree/Desktop/test.py
File "", line 1
/usr/local/opt/python/bin/python3.7 /Users/andree/Desktop/test.py
^
SyntaxError: invalid syntax

Но запуск файла из моего терминала с помощью python3 test.py работает просто отлично.
Кто-нибудь знает, в чем проблема при запуске из VS Code?
Подробнее здесь: https://stackoverflow.com/questions/515 ... tudio-code
Мобильная версия