【冬日绘板】python脚本求助
  • 板块灌水区
  • 楼主Acos_x
  • 当前回复15
  • 已保存回复15
  • 发布时间2022/1/1 01:13
  • 上次更新2023/10/28 13:14:18
查看原帖
【冬日绘板】python脚本求助
233857
Acos_x楼主2022/1/1 01:13
# 在(x,y)上用color和token绘画
def paint(x, y, color, token, refer):
    data = {'x': x, 'y': y, 'color': color}
    head = {'Referer': refer,'content-type':'application/x-www-form-urlencoded'}
    print(requests.post(paintaddr + "?token=" + token, data=data, headers=head).text)

这段代码为什么会报404?

2022/1/1 01:13
加载中...