Pyperclip not pasting new lines?

后端 未结 2 1515
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 03:46

I\'m trying to make a simple script which takes a list of names off the clipboard formatted as \"Last, First\", then pastes them back as \"First Last\". I\'m using Python 3 and

2条回答
  •  -上瘾入骨i
    2021-01-25 04:16

    Apparently I need to use '\r\n' instead of just '\n'. I don't know exactly why this is but I found that answer on the internet and it worked.

提交回复
热议问题