How do I execute a string containing Python code in Python?
Автор: The Python Oracle
Загружено: 2023-02-06
Просмотров: 14
Описание:
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3
--
Chapters
00:00 Question
00:20 Accepted answer (Score 84)
01:01 Answer 2 (Score 444)
01:45 Answer 3 (Score 36)
02:59 Answer 4 (Score 23)
03:15 Thank you
--
Full question
https://stackoverflow.com/questions/7...
Answer 1 links:
[exec(string)]: https://docs.python.org/library/funct...
[exec string]: https://docs.python.org/2/reference/s...
[eval(string)]: http://docs.python.org/library/functi...
Answer 2 links:
[Python's reference manual]: http://docs.python.org/2/reference/si...
[this]: http://lybniz2.sourceforge.net/safeev...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/l...
--
Tags
#python #string #exec
#avk47
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: