摘要: import timefrom PIL import ImageGrabimport numpy as npimport cv2 beg = time.time()debug = False# img = ImageGrab.grab(bbox=(250, 161, 1141, 610))img = 阅读全文
posted @ 2019-07-31 18:02 李艳艳665 阅读(1828) 评论(0) 推荐(0) 编辑
摘要: import timeimport win32gui, win32ui, win32con, win32api def window_capture(filename): hwnd = 0 # 窗口的编号,0号表示当前活跃窗口 # 根据窗口句柄获取窗口的设备上下文DC(Divice Context) 阅读全文
posted @ 2019-07-31 18:01 李艳艳665 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Python学习教程(Python学习路线_Python学习视频)分支结构的应用场景 迄今为止,我们写的Python代码都是一条一条语句顺序执行,这种结构的代码我们称之为顺序结构。然而仅有顺序结构并不能解决所有的问题,比如我们设计一个游戏,游戏第一关的通关条件是玩家获得1000分,那么在完成本局游戏 阅读全文
posted @ 2019-07-31 18:00 李艳艳665 阅读(246) 评论(0) 推荐(0) 编辑
摘要: function svgPathCurv(a,b,curv) { /* * 弯曲函数. * a:a点的坐标{x:10,y:10} * b:b点的坐标{x:10,y:20} * curv:弯曲程度 取值 -5 到 5 */ curv = curv ? curv : 0; var s, k2, cont 阅读全文
posted @ 2019-07-31 17:59 李艳艳665 阅读(878) 评论(0) 推荐(0) 编辑
摘要: using DG.Tweening;using UnityEngine; public class FollowTrackingCamera : MonoBehaviour{ public static FollowTrackingCamera _Instance; // Camera target 阅读全文
posted @ 2019-07-31 17:58 李艳艳665 阅读(566) 评论(0) 推荐(0) 编辑
摘要: mouseInput = scaleFactor; heightWanted -= zoomStep * mouseInput; distanceWanted -= zoomStep * mouseInput; } // Record our mouse input. If we zoom add 阅读全文
posted @ 2019-07-31 17:57 李艳艳665 阅读(157) 评论(0) 推荐(0) 编辑
摘要: import javafx.application.Application;import javafx.collections.FXCollections;import javafx.collections.ObservableList;import javafx.event.EventHandle 阅读全文
posted @ 2019-07-31 17:56 李艳艳665 阅读(107) 评论(0) 推荐(0) 编辑
摘要: import javafx.application.Application;import javafx.geometry.NodeOrientation;import javafx.geometry.Side;import javafx.scene.Scene;import javafx.scene 阅读全文
posted @ 2019-07-31 17:53 李艳艳665 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 代码演示: using System.Collections;using System.Collections.Generic;using UnityEngine; public class FindObjectOfType : MonoBehaviour { private GameObject[ 阅读全文
posted @ 2019-07-31 17:52 李艳艳665 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 代码演示: using System.Collections;using System.Collections.Generic;using UnityEngine; public class TagFind : MonoBehaviour { private GameObject thing; pr 阅读全文
posted @ 2019-07-31 17:51 李艳艳665 阅读(2127) 评论(0) 推荐(1) 编辑