求大佬帮忙看一下!!import json
import os
# print (os.getcwd())
def create_url(city_list,key_word):
url_list = []
url_name = f'url_{key_word}.txt'
for city in city_list:
path = f'./json/json_{city}.txt'
with open(path,'r+',encoding='utf8') as f:
data = f.read()
jl = json.loads(data)['code']
for i in json.loads(data)['sublist']:
region = i['code']
url = f'https://43ss.com/?jl={jl}&re={region}&kw={key_word}'
url_list.append(url)
f.close()
with open(url_name,'w') as f_url:
for url in url_list:
print(url)
f_url.write(url+'\n')
create_url(['深圳','上海','北京','广州','杭州','天津','成都','武汉','石家庄','太原','内蒙古','呼和浩特','沈阳','长春','哈尔滨','南京','合肥','郑州','长沙','南宁','海口','重庆','昆明','西安','兰州','西宁','银川','南昌','贵阳','济南'],'lsp')FileNotFoundError: [Errno 2] No such file or directory: './json/json_深圳.txt'请问为什么报错呀?