print('众数:{0:.5f}'.format(mode))
TypeError: unsupported format string passed to list.format
改成
print('众数:{0}'.format(mode,'.5f'))
print('众数:{0:.5f},{1:.5f}'.format(*mode))
``
即可
不知道什么原因
print('众数:{0:.5f}'.format(mode))
TypeError: unsupported format string passed to list.format
改成
print('众数:{0}'.format(mode,'.5f'))
print('众数:{0:.5f},{1:.5f}'.format(*mode))
``
即可
不知道什么原因