在首选项–>附加开发板管理网址,粘贴这个网站 https://arduino.esp8266.com/stable/package_esp8266com_index.json 然后在工具–>管理库里输入esp8266即可