📜  python 脚本复制和粘贴 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:25.432000             🧑  作者: Mango

代码示例2
def copy2clip(txt):
    cmd='echo '+txt.strip()+'|clip'
    return check_call(cmd, shell=True)
copy2clip('This is on my clipboard!')