最近做一个项目,项目中用到显示屏比较大,3840*1080,为了充分发挥大屏的显示区域,有一个分屏的功能,将大屏分为两个小屏,独立显示。在实现这个需求的时候使用了虚拟屏来实现小屏。为了过渡效果的平滑,需要做一些切换动画,其中一个点是要抓取虚拟屏的screenshot。 刚开始我使用了SurfaceC ...
分类:
移动开发 时间:
2020-05-24 15:18:00
阅读次数:
125
if 判断语句 if 条件: print(满足条件展示信息) if else判断 if 条件: print(满足条件展示信息) else: print(不满足条件时展示信息) print(程序结束) if elif else 判断 (连续判断) if 条件1: print() elif 条件2: p ...
分类:
编程语言 时间:
2020-05-24 09:50:43
阅读次数:
91
import requests# def http_requsts():# login_url = "http://www.tuling123.com/openapi/api"# data = {# "key": "ec961279f453459b9248f0aeb6600bbe",# "info" ...
分类:
编程语言 时间:
2020-05-23 20:15:44
阅读次数:
51
jenkins安装 mac下 jenkins配置allure commandline报错 is not a directory on the Jenkins master (but perhaps it exists on some agents) 查找的方法: https://blog.csdn. ...
分类:
系统相关 时间:
2020-05-23 11:22:23
阅读次数:
424
Python环境搭建 目录环境 配置文件 所设的工作路径等等需要挂载需要运行的py文件 requirement.txt是python项目可导出的该项目所需依赖包 RUN去安装requirement.txt内记录的所需依赖包,build时装到镜像中 CMD在启动容器时,参数为空执行默认hello.py ...
分类:
其他好文 时间:
2020-05-23 00:06:43
阅读次数:
67
1、postman简介 Postman 是一款谷歌开发的接口测试工具,使API的调试与测试更加便捷。它提供功能强大的 Web API & HTTP 请求调试。它能够发送任何类型的HTTP 请求 ,附带任何数量的参数+ headers 2、postman功能 模拟网络请求包 快速创建请求 回放、管理请 ...
分类:
其他好文 时间:
2020-05-22 22:53:43
阅读次数:
94
spring cloud sleuth zipkin实现微服务的链路跟踪 简介 在微服务数量较多的系统架构中,一个完整的HTTP请求可能需要经过好几个微服务。如果想要跟踪一条完整的HTTP请求链路所产生的日志,我们需要到各个微服务上去查看日志并检索出我们需要的信息。随着业务发展,微服务的数量也会越来 ...
分类:
编程语言 时间:
2020-05-22 13:16:02
阅读次数:
53
window.location各属性的值 : window.location.href "https://i.cnblogs.com/EditPosts.aspx?opt=1" window.location.protocol "https:" window.location.host "i.cnb ...
Redis Persistence Redis provides a different range of persistence options: The RDB persistence performs point in time snapshots of your dataset at spe ...
分类:
数据库 时间:
2020-05-22 12:55:10
阅读次数:
70
#_save_url 保存路径 def image_cj(driver, _save_url): try: _file_name = random.randint(0, 100000) _file_url_drop = _save_url + str(_file_name) + '背景.png' # ...
分类:
编程语言 时间:
2020-05-22 09:56:31
阅读次数:
59