如何用python脚本写引号

2024-09-30 02:33:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我想知道如何使用脚本python编写这个''

因为我不知道如何使用python ''从脚本编写这个

这是我的密码:

from selenium import webdriver
import time
from random import *
import pyautogui as pg


time.sleep(2)
for i in range(1,510):
    pg.typewrite('')
    # here i want to type quotes in typewrite

这里我想用打字机打引号

我想用我的script在记事本上写引号,但如果abc或123里的某个演员在写,就不是writing引号了

谢谢!你知道吗

有没有像\n这样的特殊字符?你知道吗


Tags: infromimport脚本密码timeasselenium
2条回答

您可以简单地使用双引号:

    pg.typewrite("''")

您应该使用转义字符,在大多数情况下是\

pg.typewrite('\'\'')

转义符(\)将'视为文本字符,而不是字符串标识符。你知道吗

相关问题 更多 >

    热门问题