安装
pip3.7 install pyperclip
code
import pyperclip
pyperclip.copy('hello world')
print(pyperclip.paste())
 
output
Python 3.7.4 (v3.7.4:e09359112e, Jul  8 2019, 14:54:52)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyperclip
>>> pyperclip.copy('hello world')
>>> print(pyperclip.paste())
hello world
>>>

 

 
 
 
参考:
 
 
 
 
 
 

相关文章:

  • 2022-02-11
  • 2021-07-21
  • 2021-07-04
  • 2021-12-31
  • 2022-12-23
  • 2021-12-31
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-02-02
  • 2021-11-09
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案