简体   繁体   中英

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.

However, it says there is an error (invalid syntax), supposed to be from using {} in 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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