Python123怎么用手机做题(如何用python做答题程序)

http://www.itjxue.com  2023-04-09 20:45  来源:未知  点击次数: 

python如何在手机上点击多项选择题的选项

你可以在开发者选项中打开指针位置,这样就很容易去获取界面上各个图标的具体位置了。建议是先获取手机分辨率,然后根据分辨率去计算要点击的位置。

点击操作driver有click()方法,如果没有className或者resource-id,使用swipe方法,参考如下:

##获取手机屏幕分辨率

x = self.driver.get_window_size()['width']

y = self.driver.get_window_size()['height']

x = int(x*0.1)

y = int(y*0.1)

self.driver.swipe(x, y, x, y,1)

#这里的xy就是你UI界面上图标对应的坐标,时间非常短,1毫秒,模拟点击了。

如果别人有更好的方法,你就用别人的,仅供参考。

当然tap也可以,doc如下:

"""Taps on an particular place with up to five fingers, holding

for a

certain time

:Args:

- positions - an array of tuples representing the x/y

coordinates of

the fingers to tap. Length can be up to five.

- duration - (optional) length of time to tap, in ms

:Usage:

driver.tap([(100, 20), (100, 60), (100, 100)], 500)

"""

手机python123怎么进入?

首先你要有自己的账号,登录你的账号

然后进入“我的课程”在找到一个加号“加zhidao入新课程”点击回,就可以看到了课程码,,是你的老师给你的课程码,输入错误是进不去的,必须跟你的老师沟通好

如果是跟“嵩天”老师在中国大学MOOC上进行学习,那么答你就教程操作就可以了,

用手机python123在线编程时输入的时候怎么输入

用手机键盘输入。在Python123中,点击运行代码后,程序会输入您想要的信息并使用input函数来实现。var=input("Whatisyourname?")在这里,在屏幕上看到Whatisyourname的问题可以用键盘输入。

python123考试系统怎么用

python123考试系统步骤。

1、配合使用python123考试系统软件。

2、使用shell下的命令,expect。

3、使用python的pexpect模块。

4、教师账户界面下的考场状态,实时监控所有考生的账户登陆情况。

(责任编辑:IT教学网)

更多