a=1964
for yea in range(1964,2018):
class StackSpider(Spider):
name = "stack2"
allowed_domains = ["melon.com","youtube.com"]
global n
start_urls = ['https://www.melon.com/chart/age/list.htm?chartType=YE&chartGenre=KPOP&chartDate='+str(i), ]
start_urls is https://www.melon.com/chart/age/list.htm?
chartType=YE&chartGenre=KPOP&chartDate=2017 Only start
变量i也应在下面添加的代码的def中使用。怎么可能?