Python/Library
[pyperclip] plain text 클립보드 사용하기
케이-
2016. 9. 24. 01:14
주소를 복붙하는데 사용한 아주 심플한 클립보드 사용 라이브러리
# 확인 환경
Win10/Python3.4
# 설치 방법 :
pip install pyperclip
>>> import pyperclip
>>> pyperclip.copy('The text to be copied to the clipboard.')
>>> pyperclip.paste()
'The text to be copied to the clipboard.'
윈도우에서는 다른 모듈 설치 없이 바로 사용 가능
다른 플랫폼도 큰 무리는 없을 것 같은데, 자세한 내용은 아래 링크에서 확인 가능
Git : https://github.com/asweigart/pyperclip