摘要:
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 import pandas as pd a=np.full((3, 1), 'no exist') df = pd.DataFrame([['A', 2], ['A', 4], ['B', 6]]) prin 阅读全文
摘要:
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 阅读全文