摘要:
from decimal import Decimal r = "ab.999999999" #r = "19.999999999" #if r.isdigit()==1 or "".join(r.strip("+").strip("-").split(".")).isdigit()==1: if 阅读全文
摘要:
import numpy as np a=np.array([1,0,0,0]) if a.any()==0: print('all is 0') else:print('exist not 0') a=np.array([0,0,0,0]) if a.any()==0: print('all is 阅读全文