摘要:        
from decimal import Decimal r = "ab.999999999" #r = "19.999999999" #if r.isdigit()==1 or "".join(r.strip("+").strip("-").split(".")).isdigit()==1: if     阅读全文
posted @ 2020-06-09 04:48
青女素娥
阅读(780)
评论(0)
推荐(0)
        
            
        
        
摘要:        
程序是连起来的,为了结果方便观察,我把程序分为几段发 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    阅读全文
posted @ 2020-06-09 01:37
青女素娥
阅读(727)
评论(0)
推荐(0)
        
            
        
        
摘要:        
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    阅读全文
posted @ 2020-06-09 01:26
青女素娥
阅读(20413)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号