我怎么能在python3中找到pyperclip.paste()错误的解决方案?

时间:2015-07-04 16:53:12

标签: python-3.x

当我运行以下代码时;

import pyperclip
pyperclip.copy('The text to be copied to the clipboard.')

它显示我跟随错误。

C:\pyzo2015a\lib\site-packages\pyperclip\__init__.py in _copyWindows(text)
 46         text = text.decode('mbcs')
 47 
 48     d.user32.OpenClipboard(0 if PY2 else None)
 49 
 50     d.user32.EmptyClipboard()

ArgumentError: argument 1: <class 'TypeError'>: wrong type

有什么问题?我在Widows 7上使用Python3运行此代码。

0 个答案:

没有答案