More than 1 year has passed since last update.
Anacondaに、pyperclipをインストール
conda install -c conda-forge pyperclip
下記コードを実行
src = '''
以下の文字列を変更可能
# -*- coding: utf-8 -*-
import pyperclip
src = pyperclip.paste()
src = '''ことば
supeinn
いぬ
ねこ
たぬき
きつね
'''
dest = ''
for s in src.splitlines():
dest += '.*{}.*|'.format(s)
print(dest)# コンソール出力
pyperclip.copy(dest) # クリップボード出力
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin