我有Fedora 18和Sublime Text 2
我无法从Sublime Text 2 UI中删除我项目中的文件.
当我尝试删除某个文件时,控制台显示此信息:
Traceback (most recent call last):
File "./sublime_plugin.py", line 337, in run_
File "./side_bar.py", line 19, in run
File "./send2trash/plat_other.py", line 153, in send2trash
File "./send2trash/plat_other.py", line 121, in find_ext_volume_trash
File "./send2trash/plat_other.py", line 115, in find_ext_volume_fallback_trash
File "./send2trash/plat_other.py", line 60, in check_create
File ".\os.py", line 157, in makedirs
OSError: [Errno 13] Permission denied: '/.Trash-1000'
我需要你的帮助 :)
如何使用 Go 字节有效地替换两个字符串分隔符之间的字符串出现?
例如我的平面文件 (3Mb) 内容类似于:
Lorem START ipsum END dolor sit amet, START adipiscing END elit.
Ipsum dolor START sit END amet, START elit. END
.....
Run Code Online (Sandbox Code Playgroud)
我想替换START和END分隔符之间的所有 occurrencies 。就像我的文件大小是 3Mb 一样,将整个内容加载到内存中是个坏主意。
谢谢。