True if all(pd.DataFrame()) else False不可直接用 if pd.DataFrame()做类似 if [] 的判断 valueerror也不可用 if not pd.DataFrame()if pd.DataFrame() is not None 可以