In T-SQL, aggregate functions(ex. COUNT(…
Python: format()
In Python3, using format() for string fo…
Python: Clear list
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
L1 = [1, 2, 3] L2 = L1 print(L1) >>[1, 2, 3] print(L2) >>[1, 2, 3] L1 = [] # create new empty list, so L2 values still exist print(L1) >>[] print(L2) >>[1, 2, 3] # not cleared L1 = L2 L1[:] = [] # substitute empty list to referenced list print(L1) >>[] print(L2) >>[] # also cleared |
http://…
Python: tempfile read
Before reading tempfile contents, execut…
Git: checkout from remote branch
git fetch git checkout -b {branch_name} …
Python: String encode
string encode from ‘utf-8’ t…
CheckIO: Count “Striped words”
I learned re.split(pattern, text) in Che…
Git: ignore file permission change
By default, git detects file permission …
Python: format
I learned string.format() today. [crayon…
Python: True or False
I learned all python objects can be clas…