Python Eval programming tutorial

Опубликовано: 23 Май 2015
на канале: sentdex
55,679
703

The expression argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the globals and locals dictionaries as global and local namespace. If the globals dictionary is present and lacks ‘__builtins__’, the current globals are copied into globals before expression is parsed. This means that expression normally has full access to the standard builtins module and restricted environments are propagated. If the locals dictionary is omitted it defaults to the globals dictionary. If both dictionaries are omitted, the expression is executed in the environment where eval() is called. The return value is the result of the evaluated expression. Syntax errors are reported as exceptions.

Source: https://docs.python.org/3.4/library/f...


sample code: http://pythonprogramming.net
http://hkinsley.com
  / sentdex  
http://sentdex.com
http://seaofbtc.com


На этой странице сайта вы можете посмотреть видео онлайн Python Eval programming tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь sentdex 23 Май 2015, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 55,679 раз и оно понравилось 703 зрителям. Приятного просмотра!