mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Compare commits
3 Commits
ee3a66d3ed
...
cd75b68359
Author | SHA1 | Date | |
---|---|---|---|
|
cd75b68359 | ||
|
9633245669 | ||
|
ec25b64568 |
@ -11,6 +11,7 @@ Jinja is a fast, expressive, and extensible templating engine for Python
|
||||
applications.
|
||||
|
||||
Jinja includes a lot of functionalities, such as:
|
||||
|
||||
- Template inheritance and inclusion;
|
||||
- Defining and importing macros within templates;
|
||||
- Security mechanisms to prevent XSS attacks;
|
||||
|
@ -226,7 +226,7 @@ li[::-1] # Return list in reverse order => [3, 4, 2, 1]
|
||||
# Use any combination of these to make advanced slices
|
||||
# li[start:end:step]
|
||||
|
||||
# Make a one layer deep copy using slices
|
||||
# Make a shallow copy using slices
|
||||
li2 = li[:] # => li2 = [1, 2, 4, 3] but (li2 is li) will result in false.
|
||||
|
||||
# Remove arbitrary elements from a list with "del"
|
||||
|
Loading…
Reference in New Issue
Block a user