LoginSignup
0
0

More than 1 year has passed since last update.

文字列をクリップボードに格納する(Pythonコード)

Posted at

文字列をクリップボードに格納する(Pythonコード)

Pythonでクリップボードに文字列を格納するコードを紹介します。

クリップボードに文字列を格納するコード

import pyperclip

def main_logic():
    clip_text = "test line1\r\ntest line2\r\ntest last line"
    pyperclip.copy(clip_text)

if __name__ == '__main__':
    main_logic()

👇参考URL

文字列をクリップボードに格納する(Pythonコード)

更新日:2023/03/12

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0