python 检查是否是None
def check_data(self, data):
temp = str(data)
if temp is None:
return '暂无'
else:
return data
python 检查是否是None
def check_data(self, data):
temp = str(data)
if temp is None:
return '暂无'
else:
return data