栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Final SwfPlayer下载后在安卓12上玩宇宙的刻度2

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Final SwfPlayer下载后在安卓12上玩宇宙的刻度2

与其说宇宙的刻度2这是一款游戏,倒不如说这是一个通过距离的拉伸,来带你认识这个宇宙的科教片。小到显微镜看不到的东西,大到望远镜无法观望的宇宙,我们存在的这个世界实际上有很多我们未知的事情。游戏没有什么操作,仅仅是用鼠标滚轮即可,但是就在这简单的操作中,你就可以了解到这个宇宙究竟是有多大,而最微小的生物,究竟已经小到了什么程度。

这是一个非常经典的flash小游戏,如何在手机上播放flash? 我们今天使用Final swfplayer这款app来在Android 12 手机上播放flash。

首先我们在网盘下载播放器:

https://pan.baidu.com/s/10eYD7-Vrp8rwoaOho7fdGQ?pwd=1234 

下载后拷贝安装到手机。

 

安装后看见上面的图标,然后点开运行。选择提前准备的 swf,然后打开文件选择这个flash文件。

可用拖动下方的 滚动条控制,可用点击物体线上相关信息!

rom urllib.parse import quote_plus as url_quoteplus
from urllib.parse import urlsplit
from selenium.webdriver.common.by import By as WebBy
from selenium.webdriver.support.ui import Select as WebSelect


def allow_flash(driver, url):
    def _base_url(url):
        if url.find("://") == -1:
            url = "http://{}".format(url)
        urls = urlsplit(url)
        return "{}://{}".format(urls.scheme, urls.netloc)

    def _shadow_root(driver, element):
        return driver.execute_script("return arguments[0].shadowRoot", element)

    base_url = _base_url(url)
    driver.get("chrome://settings/content/siteDetails?site={}".format(url_quoteplus(base_url)))

    root1 = driver.find_element(WebBy.TAG_NAME, "settings-ui")
    shadow_root1 = _shadow_root(driver, root1)
    root2 = shadow_root1.find_element(WebBy.ID, "container")
    root3 = root2.find_element(WebBy.ID, "main")
    shadow_root3 = _shadow_root(driver, root3)
    root4 = shadow_root3.find_element(WebBy.CLASS_NAME, "showing-subpage")
    shadow_root4 = _shadow_root(driver, root4)
    root5 = shadow_root4.find_element(WebBy.ID, "advancedPage")
    root6 = root5.find_element(WebBy.TAG_NAME, "settings-privacy-page")
    shadow_root6 = _shadow_root(driver, root6)
    root7 = shadow_root6.find_element(WebBy.ID, "pages")
    root8 = root7.find_element(WebBy.TAG_NAME, "settings-subpage")
    root9 = root8.find_element(WebBy.TAG_NAME, "site-details")
    shadow_root9 = _shadow_root(driver, root9)
    root10 = shadow_root9.find_element(WebBy.ID, "plugins")  # Flash
    shadow_root10 = _shadow_root(driver, root10)
    root11 = shadow_root10.find_element(WebBy.ID, "permission")
    WebSelect(root11).select_by_value("allow")

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/935729.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号