我想实现一个这样的效果,但觉得这样实现好像不妥,请问在python中应该怎样实现?这样可以吗?
try:
res_mes = xxxx
except:
res_mes = None
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
is not None 可以保证res_mes是有值的