alex_bn_lee

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

07 2024 档案

[1040] In batch file, some special characters to print
摘要:Using ^ in front of the character, then it can be properly printed. C:\Users\User>echo ^^ ^ C:\Users\User>echo ^| | C:\Users\User>echo ^< < C:\Users\U 阅读全文

posted @ 2024-07-22 13:42 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

[1039] In python, open a PDF file and maximize it
摘要:The implementation is as follows: import win32gui, win32con, os, time # Pdf report file path file_path = os.path.join(pdf_folder, pdf_name) # Open and 阅读全文

posted @ 2024-07-22 13:07 McDelfino 阅读(3) 评论(0) 推荐(0) 编辑

[1038] Move the Adobe Acrobat to the left screen if it is in the right screen
摘要:In python, it is difficult to capture it. But we can use another way to do this. Each time, when we open the Adobe Acrobat, it will show something lik 阅读全文

posted @ 2024-07-22 13:03 McDelfino 阅读(6) 评论(0) 推荐(0) 编辑

[1037] Python operation of three keys shortcut (pynput)
摘要:The shortcut of win + shift + left does not work well in pyautogui, but it works well in pynput. Moving the Active Window to a Different Monitor: You’ 阅读全文

posted @ 2024-07-22 12:57 McDelfino 阅读(10) 评论(0) 推荐(0) 编辑

[1036] Extracting hyperlink information from an Excel file
摘要:Certainly! Extracting hyperlink information from an Excel file (specifically .xlsx format) in Python can be done using the openpyxl library. Let’s div 阅读全文

posted @ 2024-07-18 12:28 McDelfino 阅读(11) 评论(0) 推荐(0) 编辑

[1035] Extract the content from online PDF file or PDF URL
摘要:Certainly! When working with online PDFs using the pyPDF2 library in Python, you can retrieve the content from a PDF file hosted at a URL. Let’s explo 阅读全文

posted @ 2024-07-18 12:01 McDelfino 阅读(9) 评论(0) 推荐(0) 编辑

[1034] Locating an image within a specific area using pyautogui
摘要:Locating an image within a specific area of the screen using PyAutoGUI can be done as follows: Using PyAutoGUI’s locateOnScreen Function: PyAutoGUI pr 阅读全文

posted @ 2024-07-17 09:47 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[1033] Run the batch file of the PyQt GUI, but don't show the CMD
摘要:I built a GUI layout using PyQt, and I run the Python file with a .bat file. However, this method initially displays the CMD window before showing the 阅读全文

posted @ 2024-07-16 12:14 McDelfino 阅读(9) 评论(0) 推荐(0) 编辑

[1032] SQLAlchemy—the magical bridge between Python and databases!
摘要:Ah, SQLAlchemy—the magical bridge between Python and databases! 🌟 Let me weave you a tale of SQL, Pythonic spells, and the art of data persistence. 1 阅读全文

posted @ 2024-07-12 14:02 McDelfino 阅读(7) 评论(0) 推荐(0) 编辑

[1031] re.escape() function in re of Python
摘要:Certainly! Let’s unravel the mysteries of the re.escape() function in Python. 🧐 1. What Is re.escape()? The re.escape() function is like a protective 阅读全文

posted @ 2024-07-12 08:49 McDelfino 阅读(28) 评论(0) 推荐(0) 编辑

[1030] Extract text between two specific phrases in a multi-line text
摘要:Ah, the ancient art of text extraction—where we delve into the scrolls of Python magic to reveal hidden passages! Fear not, fellow seeker of knowledge 阅读全文

posted @ 2024-07-12 08:48 McDelfino 阅读(9) 评论(0) 推荐(0) 编辑

[1029] Download files by wget in Python
摘要:Syntax: wget(url, destination_path) Certainly! Let’s embark on a file-fetching adventure with Python and our trusty sidekick, wget. 🌐📥 Wget is like 阅读全文

posted @ 2024-07-12 08:18 McDelfino 阅读(67) 评论(0) 推荐(0) 编辑

[1028] Creating your very own Python library (package)
摘要:Ah, creating your very own Python library—how exciting! 🐍 Let’s dive into the process step by step so you can have your custom goodies ready for impo 阅读全文

posted @ 2024-07-11 08:31 McDelfino 阅读(4) 评论(0) 推荐(0) 编辑

[1027] Convert the .py file to the .exe file without opening the Command Line Window
摘要:ref: How to remove black screen (python console?) with PyQt5 executable "C:\Users\User\AppData\Local\Programs\Python\Python311\Scripts\pyinstaller.exe 阅读全文

posted @ 2024-07-09 13:01 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[1026] Convert a Qt Designer .ui file to a Python .py file
该文被密码保护。

posted @ 2024-07-09 11:48 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

[1025] PyQt6 and Qt Designer
摘要:ref: Install and Setup PyQt6 and Qt Designer [PyQt6 tutorial] ref: PyQt5 Tutorial - Setup and a Basic GUI Application pip install pyqt6 pip install py 阅读全文

posted @ 2024-07-09 08:10 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[1024] Extract tables from HTML with Python and Pandas
摘要:ref: How to Extract Tables from HTML with Python and Pandas 阅读全文

posted @ 2024-07-08 15:00 McDelfino 阅读(4) 评论(0) 推荐(0) 编辑

[1023] PyQt: GUI for Python
摘要:ref: PyQt5 tutorial ref: PyQt6 Widgets Example: Script: from PyQt6.QtWidgets import QApplication, QHBoxLayout, QLabel, QWidget, QLineEdit, QPushButton 阅读全文

posted @ 2024-07-08 14:57 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

[1022] Activate specific apps using keyboard shortcuts
摘要:This is a very good one!!! Taskbar Shortcut Keys: If an app is pinned to your taskbar, you can use the following shortcut: Press Win + 1 to activate t 阅读全文

posted @ 2024-07-05 12:33 McDelfino 阅读(12) 评论(0) 推荐(0) 编辑

[1021] snipping tool: snipaste
摘要:ref: https://www.snipaste.com/ Snip & Paste * Free. Customizable. Portable. 阅读全文

posted @ 2024-07-04 20:50 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

[1020] PyAutoGUI
摘要:ref: Welcome to PyAutoGUI’s documentation! ref: PyAutoGUI - Cheat Sheet >>> import pyautogui >>> screenWidth, screenHeight = pyautogui.size() # Get th 阅读全文

posted @ 2024-07-03 15:20 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

[1019] Self-reflection - 2024.02
该文被密码保护。

posted @ 2024-07-01 14:09 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示