TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #209 · 1 фев.

Вы заметили что с интерактивной консолью из прошлого поста что-то не так? Что происходит если нажать стрелки вверх/вниз? Полный бардак! Давайте поправим это дело! Для сохранения и загрузки истории будем использовать специальный модуль readline. Что добавлено? 🔸 Сохранение истории команд с возможностью выбора предыдущих (клавиши ⬆️⬇️ ) 🔸 Сохранение истории в файл перед выходом из интерактива для будущих сессий 🔸 Автокомплит по нажатию клавиши TAB 🔸 Cписок вариантов автокомплита по двойному нажатию TAB Код забираем здесь ↗️ #tricks#source

Резултати

Пронајдени 1 слични објави

Пребарај: #genshi

当前筛选 #genshi清除筛选
djangoproject

@djangoproject · Post #197 · 29.11.2016 г., 16:06

#Mako is a #template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Mako's syntax and #API borrows from the best ideas of many others, including #Django and #Jinja2 templates, #Cheetah, #Myghty, and #Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, which refines the familiar ideas of componentized layout and inheritance to produce one of the most straightforward and flexible models available, while also maintaining close ties to Python calling and scoping semantics. http://www.makotemplates.org/