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')
原文地址:https://www.cnblogs.com/wutou/p/15610028.html