爬虫format
Traceback (most recent call last):File "C:\Users\86186\PycharmProjects\pythonProject1\spider6.py", line 17, in <module>
new_url = format(url%pageNum)
TypeError: not enough arguments for format string
兄弟们,怎么解决这个问题QAQ 代码要发全 new_url = "{url}".format(url = pageNum) 没看太懂, 占位符不应该这么用吗?
new_url = url % pageNum
页:
[1]