当前位置: 代码迷 >> 综合 >> 6.4 在WIki标记中添加无序列表
  详细解决方案

6.4 在WIki标记中添加无序列表

热度:31   发布时间:2023-09-22 09:56:10.0
import pyperclip# list 0f 1
# list of 2
# list of 3
text = pyperclip.paste()
pyperclip.copy(text)
lines = text.split('\n')
for i in range(len(lines)):lines[i] = '*' + lines[i]
text = '\n'.join(lines)
pyperclip.copy(text)#print('Hello world'[:5])