This commit is contained in:
jackeyGao
2019-07-22 11:37:05 +08:00
parent 9a7a9448c6
commit 8518797143
17 changed files with 17 additions and 0 deletions

17
wudai/nantang/nc.py Normal file
View File

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from AppKit import NSPasteboard, NSStringPboardType
pb = NSPasteboard.generalPasteboard()
pbstring = pb.stringForType_(NSStringPboardType)
body = ''
for i in pbstring.split('\n'):
content = i.strip()[0:]
cs = content.split(u'')
content = '"'+ cs[0] + '--' + u''.join(cs[1:]) + '",\n'
body += content
print body.strip(',\n')