Windows Quick call to python
Quick call of python Program on windows platform
Scenario 1: the account / or password of a cloud platform is relatively long. Once the browser cache expires, it is necessary to look up the email / file. Scenario 2: due to some scenarios, the password is forced to be changed every N days. Simple password box, password saving, automatic copy to pasteboard scene 3:python powerful, wrote a Mini Program, lazy python / dir/XXX.PY directly from the window command window to call python gadget usage: ctrl+r call window command window. Enter custom commands such as pwd to enter the account number / password you need to find
You can automatically copy to the pasteboard for use, and paste ctrl v when you use it
Step1. Precondition, install python, and set to windows path
Add python installation location in path
You can call python directly when you are finished.
Step2. Custom command name such as pwd, registered to path
Window actual directory
The actual content of pwd.bat actually calls the python program.
@ py.exe D:/my-bin/lib/pwd.py@pausestep3 to write python programs
You can do a function list as needed.
Because pasting depends on pyperclip. You just need to pip install it.
#! python3import sys,pyperclipprint ("* * usage: get account or pwd from lib * *") pwds= {'aqiang get account or pwd from lib pawn, 'ali':'longlonglongsoiforgetthename@aliyun.com'} account=input (' plz input accountname:') pwd= pwds [account] print ('% slug% slots% (account,pwd)) pyperclip.copy (pwd)