在修改github上的readme.md时,由于内容中有网址,自动变成了超链接形式,详情见截图。请问该如何解决?
跑含有id号的网址(见代码page = requests.get('http://lolapi.games-cube.com/GetChampionDetail?champion_id={id_}'.format(id_=id_),headers=headers)) , 并把每个id号下的英雄以其英文为文件名,输成json档(见代码 with open('data/{ename}.json'.format(ename=dict_id[id_]),'w') as championdetail:),
单行代码一般使用 `` 括起来。更清晰,而且不会解析成超链接。
`page = requests.get('http://lolapi.games-cube.com/...{id_}'.format(id_=id_),headers=headers))`
解析出来是:
page = requests.get('http://lolapi.games-cube.com/GetChampionDetail?champion_id={id_}'.format(id_=id_),headers=headers))