TIL
TIL 2020.10.24
paigekim29
2020. 10. 24. 21:56
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