#! python3 #顶行命令,指定用python3运行
# bulletPointAdder.py - Adds Wikipedia bullet points to the start
# of each line of text on the clipboard.
import pyperclip
text = pyperclip.paste()
# Separate lines and add stars.
lines = text.split('\n')
for i in range(len(lines)):
lines[i] = '* '+lines[i]
text = '\n'.join(lines)
pyperclip.copy(text)
python-在 Wiki 标记中添加无序列表
最新推荐文章于 2023-06-18 22:45:45 发布