Check type of object against a string representation of a type object in Python

前端 未结 0 461
死守一世寂寞
死守一世寂寞 2021-01-20 00:17

In Python code, would like to check the type of a variable against a provided type that I receive as a string (e.g., \'int\', \'str\', \'list\'). I would like to check if my

相关标签:
回答
  • 消灭零回复
提交回复
热议问题