简体   繁体   English

在 Python 与剧作家一起爬网

[英]Web-Crawling with playwright in Python

Good day, everyone.今天是个好日子。

I have an assignment on the condition that I should use crawling_{201904307} in def part like the image.我有一个任务,条件是我应该像图像一样在 def 部分使用 crawling_{201904307}。

However, it says there is an error (invalid syntax), supposed to be from using {} in def.但是,它表示存在错误(无效语法),应该是由于在 def 中使用 {}。

Please help me out of this problem.请帮我解决这个问题。

Thanks in advance!提前致谢!

存在语法错误的 Python 代码

It was expected not to have any errors for crawling.预计不会有任何爬行错误。

crawling_{201904307} is not a valid name for a function name in python. Method names can only contain alpha-numeric characters and underscores. crawling_{201904307}不是 python 中 function 名称的有效名称。方法名称只能包含字母数字字符和下划线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM