类型错误“float”对象不能解释为整数,cmap

cmap = sns. diverging palette (220, 10, s=60, 1=50, center="light",as_cmap=True)
#报错:TypeError: 'float' object cannot be interpreted as an integer
#是什么原因呀

代码中“/”改为“//” 即可