2017년 1월 1일 일요일

[PyperClip] plain text 클립보드 사용하기

주소를 복사 붙여넣기 하는데 사용한 아주 심플한 클립보드 사용 라이브러리


# 확인 환경
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

댓글 없음:

댓글 쓰기