家齐高中资讯研究社 社课内容1

1.练习打字

Typing Club练习打字

2.练习上传档案

https://ithelp.ithome.com.tw/upload/images/20210930/20142610RRkbfaxQWf.png

3.下载及使用pyperclip模组

https://ithelp.ithome.com.tw/upload/images/20210930/20142610Ov7jsRiVyV.png

4.下载及使用pyautogui模组

结合前面的上传档案及pyperclip外加whereisthemouse,pyautogui来做出自动开启档案及查询的功能

import pyautogui
import pyperclip

try:
    with open ("d:/aaa.txt","r",encoding='utf8') as file:
        file=file.readlines()
    for L in file:
        pyperclip.copy(L.strip()) # L.strip() #删除头尾空格
        pyautogui.click((175,48))
        pyautogui.time.sleep(2.0)
        pyautogui.hotkey('ctrl','a')
        pyautogui.time.sleep(2.0)
        pyautogui.hotkey('ctrl','v')
        pyautogui.hotkey('enter')
except:print("error")


<<:  Powershell 入门之模块(补充)

>>:  最短路径问题 (4)

【Vue】串 API 前置作业|Axios 是什麽?

Axios 是一个 Promise based 的HTTP 请求工具。 那 Promise base...

Day24 X Web Rendering Architectures

今天开始正式进入系列文的最後一个章节 - Framework, Architecture and ...

Day26-"练习-1"

最後五篇了 加油! 今天练习CPE曾经出过的一题题目 任意一个正方形会是长方形,但不是所有的长方形都...

新新新手阅读 Angular 文件 - Day02

学习内容 这一篇的内容,是纪录阅读官方文件 tutorial: A Hero Editor 的笔记,...

D8-(9/8)-中华电(2412)-存股好选择

注:发文日和截图的日期不一定是同一天,所以价格计算上和当日不同,是很正常的。 声明:这一系列文章并无...