공부
[Python] typeof -> `isinstance(s, str)`
승가비
2021. 1. 14. 06:50
728x90
isinstance(s, str)
https://stackoverflow.com/questions/4843173/how-to-check-if-type-of-a-variable-is-string
How to check if type of a variable is string?
Is there a way to check if the type of a variable in python is a string, like: isinstance(x,int); for integer values?
stackoverflow.com
728x90