cloudcb.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:cloud-clipboard 作者: krsoninikhil 项目源码 文件源码
def copy():
    """
    Returns the current text on clipboard.
    """
    data = pyperclip.paste()
    ## before using pyperclip
    # if os.name == "posix":
    #     p = subprocess.Popen(["xsel", "-bo"], stdout=subprocess.PIPE)
    #     data = p.communicate()[0].decode("utf-8")
    # elif os.name == "nt":
    #     data = None
    # else:
    #     print("We don't yet support %s Operating System." % os.name)
    #     exit()
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号