import pyperclip
text = pyperclip.paste()
print(text)
lines = text.split('\n')
for i in range(len(lines)):
lines[i] = '* ' + lines[i]
text = '\n'.join(lines)
pyperclip.copy(text)
print(text)
粘贴板示例.txt
Lists of animals
Lists of aquarium life
Lists of biologists by author abbreviation