Python: How to cast based on type without needing to import the objects we need to verify type

后端 未结 0 1742
青春惊慌失措
青春惊慌失措 2020-12-23 10:16

Consider as a matter of an example the following function:

import numpy as np

# module.py
def func(x):
    if isinstan         


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