我无法pyperclip copy()函数

时间:2019-04-11 09:10:12

标签: python python-3.x pyperclip

我无法使用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()

0 个答案:

没有答案