TO DO LIST
- Review Python
WHAT I LEARNED
- Difference between 'parameters' and 'arguments' in python
- Parameters: variable you put inside parentheses in defintion
- Arguments: value that will be sent when the definition is called
- recursive=False: if you want to call direct son while using find_all()
- reverse=true: if you want to reverse items inside list
- lamda: to create anonymous function
reference: https://blog.naver.com/rkttndk/221836743731
ํ์ด์ฌ ํจ์ : Python Functions:์ฌ๊ท ํจ์:parameter/arguments ์ ๋ฌ
ํจ์๋ ํธ์ถ ๋์์ ๋๋ง ์คํ๋๋ ์ฝ๋ ๋ธ๋ฝ์ด๋ค.๋งค๊ฐ ๋ณ์๋ฅผ ์ด์ฉํ์ฌ ํจ์์๊ฒ ๋ฐ์ดํฐ๋ฅผ ๋๊ฒจ์ค ์ ์์ผ...
blog.naver.com
stackoverflow.com/questions/8966538/syntax-behind-sortedkey-lambda
Syntax behind sorted(key=lambda: ...)
I don't quite understand the syntax behind the sorted() argument: key=lambda variable: variable[0] Isn't lambda arbitrary? Why is variable stated twice in what looks like a dict?
stackoverflow.com
'TIL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
TIL 2020.10.27 (0) | 2020.10.27 |
---|---|
TIL 2020.10.26 (0) | 2020.10.26 |
TIL 2020.10.22 (0) | 2020.10.22 |
TIL 2020.10.21 (0) | 2020.10.22 |
TIL 2020.10.20 (0) | 2020.10.20 |