如何在pythonuiautomator上使用“d.press()?

2024-09-27 22:23:04 发布

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

我是python自动机的初学者

我在试着写些代码。你知道吗

我只找到这个代码“d.press(0x07)”,它将在驱动器上打印(0)。 但我想知道我能用的其他号码,或者用印刷机能打印出来的号码,比如:(a,b,c,d)在我的设备上?你知道吗

[顺便说一句,我知道“.set_text”这样,但我想使用“d.press()”]

python-uiautomator

from uiautomator import device as d

d.press(0x07)
sleep(1)

“”“


Tags: 代码textfromimport自动机deviceassleep

热门问题