mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 22:58:04 -08:00
Compare commits
6 Commits
5b30a09ee6
...
fe2bc247c9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe2bc247c9 | ||
|
|
d143c60246 | ||
|
|
44371217a9 | ||
|
|
9617317345 | ||
|
|
087d5d45a6 | ||
|
|
96f9b643f4 |
@@ -125,6 +125,27 @@
|
||||
| \|= | bitwise or and store|
|
||||
| , | separator as in ( y=x,z=++x )|
|
||||
|
||||
<br>
|
||||
|
||||
## Comments
|
||||
|
||||
- Comments are very helpful to explain a Python code.
|
||||
|
||||
- They are used to make the code more readable.
|
||||
|
||||
- They never get executed.
|
||||
|
||||
- Comments start with # in Python.
|
||||
|
||||
```python
|
||||
|
||||
#This is a comment
|
||||
|
||||
print("Welcome!")
|
||||
|
||||
```
|
||||
<br>
|
||||
|
||||
### Basic Data Structures
|
||||
|
||||
### List
|
||||
|
||||
@@ -105,7 +105,7 @@ gu$ make lowercase until end of line
|
||||
<< indent line one column to left
|
||||
== auto-indent current line
|
||||
ddp swap current line with next
|
||||
ddkp swap current line with previous
|
||||
ddkP swap current line with previous
|
||||
:%retab fix spaces / tabs issues in whole file
|
||||
:r [name] insert the file [name] below the cursor.
|
||||
:r !{cmd} execute {cmd} and insert its standard output below the cursor.
|
||||
|
||||
Reference in New Issue
Block a user