Merge branch 'pr/123'

This commit is contained in:
jackeyGao
2019-07-22 12:04:01 +08:00
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')