当前位置: 首页 > news >正文

python小项目:口令保管箱

代码:

#! python3
# python 编程-----口令保管箱passwords={'emails':'' 'F7minlBDDuvMJuxESSKHFhTxFtjVB6','blog':'VmALvQyKAxiVH5G8v01if1MLZF3sdt','luggage':'12345',}
import sys,pyperclip
if len(sys.argv)<2:print('usage:python python3文件[accout]-copy accout password')sys.exit()accout=sys.argv[1]  # frist command line arg is the accout nameif accout in passwords:pyperclip.copy(passwords[accout])print('Password for ' + accout + ' copied to clipboard')else:print('There is no accout named ' + accout)

添加批处理脚本:

@D:\python\python.exe D:\pythonpassword\pythonpassword.py %*
@pause

添加环境变量,然后直接win+R,输入pw+ 需要的账户,就能提取到对应的密码,直接可以执行粘贴,方便平常输入密码。

http://www.lryc.cn/news/289229.html

相关文章:

  • 微认证 openEuler社区开源贡献实践
  • 紫光展锐M6780丨超分辨率技术——画质重构还原经典
  • 《Python 简易速速上手小册》第6章:Python 文件和数据持久化(基于最新版 Python3.12 编写)
  • 华为机考入门python3--(4)牛客4-字符串分隔
  • Unity MonoBehaviour 生成dll
  • 基于Python flask MySQL 猫眼电影可视化系统设计与实现
  • 【新课上架】安装部署系列Ⅲ—Oracle 19c Data Guard部署之两节点RAC部署实战
  • gdb调试std::list和std::vector等容器的方法
  • python stomp 转发activemq topic消息
  • Spring Boot使用AOP
  • C语言通过IXMLHttpRequest以get或post方式发送http请求获取服务器文本或xml数据
  • QtRVSim(二)一个 RISC-V 程序的解码流程
  • x-cmd pkg | httpx - 为 Python 设计的下一代 HTTP 客户端库
  • 代码随想录算法训练营第四十二天(动态规划篇)|62. 不同路径
  • YOLO 全面回顾:从最初的YOLOv1到最新的YOLOv8、YOLO-NAS,以及整合了 Transformers 的 YOLO
  • Android双指缩放ScaleGestureDetector检测放大因子大图移动到双指中心点ImageView区域中心,Kotlin(2)
  • 同为科技(TOWE)自动控制循环定时插座
  • 游戏设计模式
  • CUBEMX与FreeRTOS在Arm Compiler 6下的配置方法
  • Android Studio 提示Use app:drawableStartCompat instead of android:drawableStart
  • C# wpf 实现任意控件(包括窗口)更多调整大小功能
  • Vue+OpenLayers7入门到实战:快速搭建Vue+OpenLayers7地图脚手架项目。从零开始构建Vue项目并整合OpenLayers7.5.2
  • mysql-线上常用运维sql
  • Linux之进程间通信(system V 共享内存)
  • 数据库 sql select *from account where name=‘张三‘ 执行过程
  • 力扣日记1.27-【回溯算法篇】131. 分割回文串
  • 如何用web界面打开华为防火墙
  • 力扣20、有效的括号(简单)
  • Android 系统启动过程
  • 基于STM32的智能手环设计与实现