基于python cut和qcut的用法及区别详解 我就废话不多说了,直接上代码吧:frompandasimportSeries,DataFrameimportpandasaspdimportnumpyasnpfromnumpy cut