原文:python 報錯 TypeError: 'builtin_function_or_method' object is not subscriptable

代碼: print classification report y test, pca y predict, target names np.arange .astype str 原因: 將np.arange 寫成了np.arange ...

2020-09-08 16:51 0 930 推薦指數:

查看詳情

Python報錯'builtin_function_or_method' object is not iterable

這個程序是正確的版本 上面這個程序出現了錯誤 他報程序第7行也就是for循環那邊不可以迭代,for循環只有z我們,我們從上面的圖片看到z的賦值那邊與正確答案不對,使用join錯 ...

Tue Apr 07 08:59:00 CST 2020 0 836
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM