티스토리 뷰

공부

[Python] find in list

승가비 2020. 5. 18. 01:45
728x90
3 in [1, 2, 3] # => True

https://stackoverflow.com/questions/9542738/python-find-in-list

 

Python: Find in list

I have come across this: item = someSortOfSelection() if item in myList: doMySpecialFunction(item) but sometimes it does not work with all my items, as if they weren't recognized in the list ...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[JS] get queryString  (0) 2020.05.18
[Chrome] clipboard API  (0) 2020.05.18
[JS] ArrayBuffer to Blob  (0) 2020.05.18
[SpringBoot] boot.sh  (0) 2020.05.18
[Sh] copy_hdfs.sh  (0) 2020.05.18
댓글