我无法使用pyperclip。
import pyperclip
pyperclip.copy('Hello world!')
pyperclip.paste()
>>>
================ RESTART: C:/Python37-32/MyPrograms/hello.py ================
Traceback (most recent call last):
File "C:/Python37-32/MyPrograms/hello.py", line 1, in <module>
import pyperclip
File "C:/Python37-32/MyPrograms\pyperclip.py", line 2, in <module>
pyperclip.copy('Hello world!')
AttributeError: module 'pyperclip' has no attribute 'copy'
>>>
import pyperclip
pyperclip.copy('Hello world!')
pyperclip.paste()