Posts
All the articles I've posted.
使用Python和Redis实现多台电脑剪切板内容同步
Published: at 05:00 PM简介: 在本篇博客中,我们将探讨一个引人入胜的项目,它允许您在不同电脑之间同步剪切板内容。想象一下,您可以轻松地在工作电脑和家用电脑之间复制和粘贴文本或文件。该项目使用Python和Redis来实现这一目标。我们将以简...
获取windows桌面所有可见窗口信息
Published: at 09:51 PM窗口信息主要有:窗口句柄、标题、类名、区域,还有一个ZOrder,它表示窗口显示在桌面的上下层级,窗口是否被遮盖。 include <qtwindows.h> include <QDebug> int GetWindowZOrder(HWND hwnd); struct WindowInfo...
远程桌面切换到console session
Published: at 10:52 AM我用vpn连到公司内网,然后通过mstsc远程桌面连到公司内网机器。我想关掉vpn这样就不能用微软的远程桌面了,所以我先起了一个第三方的远程桌面软件,这样关闭vpn和微软的远程桌面,就可以用第三方的远程桌面在家里连接公司...
JavaScript优雅的编程方式
Published: at 10:19 PMJavaScript 有许多高级技巧可以提高代码的可读性和可维护性,本回答将介绍其中的一些技巧并给出示例。 1. 使用函数式编程 函数式编程可以使代码更加灵活、可复用、容错性强,是一种将函数看作第一等公民的编程范式...
实现RPA软件的关键点
Published: at 09:32 PM实现RPA(Robotic Process Automation)软件的关键点包括以下几个方面: 识别业务流程:首先需要确定要自动化的业务流程,识别出业务流程中哪些环节可以被自动化执行。 开发自动化脚本:根据业务流程的识别结果,采用相...
Win32 MSAA UIA技术介绍
Published: at 09:27 PMWin32、MSAA、UIA技术在Windows平台开发中是比较常见的技术。本文将对这几种技术进行简要介绍,并解释为什么RPA产品会用到这些技术。 Win32 Win32是一套基于C语言的API接口,是Windows操作系统最为基础的API。通过Win3...
C++20 模块入门指南
Published: at 09:16 AM如果你正在学习 C++ 或从事 C++ 开发,那么你一定使用过头文件(header file)来实现代码的模块化。然而,在 C++ 早期版本中,头文件带来了很多问题,比如编译速度慢、头文件依赖复杂等等。因此,在 C++20 中引入了一个新的特性...
Python的几种函数参数类型
Published: at 10:28 PM位置参数,根据参数的传入顺序来赋值 def add(a, b) return a + b 默认参数,n就是默认参数,调用函数的时候可以不传 默认参数必须写在后面且指向不变对象 def power(a, n=2) s = 1 for ...
Effective Python
Published: at 08:59 PM读Effective Python的一些练习和记录 关于命名的建议 PEP 8 建议采用不同的方式来给 Python 代码中的各个部分命名,这样在阅读代码时, 就可以根据这些名称看出它们在 Python 语言中的角色。 函数、变量及属性用小...
Mac、linux安装brew终极办法
Published: at 04:13 PM安装brew的时候是不是经常碰到连不上或者下载缓慢的情况,下面方法可以帮你解决这个问题: 在终端粘贴如下命令回车就可以了,注意执行后的命令行提示,可能要输入开机密码 /bin/zsh -c "$(curl -fsSL https//gite...