Skip to content

Commit 35008cd

Browse files
committed
提交代码
1 parent 146dc7a commit 35008cd

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

xianhuan/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Python技术 公众号文章代码库
1010

1111
## 实例代码
1212

13+
[这个自动化利器,Pythoner都在用!](https://github.com/JustDoPython/python-examples/tree/master/xianhuan/pdffit):自动化利器,Pythoner都在用!
14+
1315
[人人爆吹的PyScript到底是什么?](https://github.com/JustDoPython/python-examples/tree/master/xianhuan/pyscript):人人爆吹的PyScript到底是什么?
1416

1517
[Python 增强视频画质,就这么做!](https://github.com/JustDoPython/python-examples/tree/master/xianhuan/enhancevideo):Python 增强视频画质,就这么做!

xianhuan/pdfkit/demo.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pdfkit
2+
3+
4+
path_wkthmltopdf = r'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe'
5+
config = pdfkit.configuration(wkhtmltopdf=path_wkthmltopdf)
6+
7+
pdfkit.from_url(r'https://zhuanlan.zhihu.com/p/421726412', 'studypython.pdf', configuration=config)
8+
9+
pdfkit.from_file(r'C:\Users\cxhuan\Downloads\ttest\test.html','html.pdf', configuration=config)
10+
11+
pdfkit.from_string('talk is cheap, show me your code!','str.pdf', configuration=config)
12+

xianhuan/pyautogui2/agree.png

503 Bytes
Loading

xianhuan/pyautogui2/demo.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pyautogui
2+
3+
# 图像识别(一个)
4+
oneLocation = pyautogui.locateOnScreen('1.png')
5+
print(oneLocation)
6+
# 图像识别(多个)
7+
allLocation = pyautogui.locateAllOnScreen('1.png')
8+
print(allLocation)
9+
print(list(allLocation))
10+
for left,top,width,height in pyautogui.locateAllOnScreen('1.png'):
11+
print(1)
12+
print(left)

0 commit comments

Comments
 (0)