python多行注释报错_python 有多行注释运行报错

在python 中写 这样的注释 用 vscode 运行会报错#coding=utf-8

import json

from playwright.sync_api import sync_playwright

f = open('D:/threeday/backup-2.json',"r+")

urls = f.readlines()

print(json.loads(urls[0]))

with sync_playwright() as p:

browser = p.chromium.launch()

for url in urls[0]:

page = browser.new_page()

page.goto(url)

"""

λ python -m playwright install

Downloading chromium v844399 - 91 Mb [====================] 100% 0.0s

chromium v844399 downloaded to C:\Users\Administrator\AppData\Local\ms-playwright\chromium-844399

Downloading firefox v1225 - 75.1 Mb [====================] 100% 0.0s

firefox v1225 downloaded to C:\Users\Administrator\AppData\Local\ms-playwright\\firefox-1225

Downloading webkit v1423 - 38.2 Mb [====================] 100% 0.0s

webkit v1423 downloaded to C:\Users\Administrator\AppData\Local\ms-playwright\webkit-1423

"""

0741e1660f3d98af983fa169ed2e7871.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值