读取keyring密码 前提是已经通过yagmail设置好密码了 import os os.chdir("D:\\python_major\\auto_office") import keyring password = keyring.get_password("yagmail","xianl828@163.com") print