先登录官网注册https://plot.ly/ 在自己页面找到API-Key 开始工作: import plotly.plotly as py 先登录账号,因为你画的图,要在官网,你自己的账户下找到 py.sign_in('username', 'API-Key')