这里的参数给错了,n_estimators参数类型要求为int,但是你给的是一个NoneType,改成这样试试:clf = RandomForestClassifier(n_estimators=100)