Python模块之pyperclip - 复制内容

pyperclip

作用:

  复制内容

必要操作:

>>> import pyperclip

帮助查看:

>>> help(pyperclip)
或 单独查看某个方法(函数)
>>> help(pyperclip.copy)

方法(函数):

  ## 复制内容

class SendMsg(object):
    def __init__(self):
    self.name = '二胖'

def send_msg(self):
    pyperclip.copy(self.name)
    pyautogui.hotkey('ctrl', 'v')

 

posted @ 2021-11-26 23:14  悟透  阅读(433)  评论(0编辑  收藏  举报