mirror of
https://kkgithub.com/chinese-poetry/chinese-poetry.git
synced 2026-04-10 20:27:05 +00:00
delete nc.py
删除开发作用脚本
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
# -*- 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')
|
|
||||||
Reference in New Issue
Block a user