用 vim 打开没有写权限的文件而忘记用 sudo 时,文件变成 read-only这时候用 :w!, SHIFT+ZZ,或者 qw! 都无法保存 :w !sudo tee % :w : Write a file.可以将文件写入,文件仍然是只读模式,通过 :q! 退出 !sudo : Call shell sudo command. tee : The output of the vi/vim write command is redirected using tee. % : Triggers…
import json import codecs # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class PandaPipeline(object): def __init__(self): self.fil…
https://stackoverflow.com/questions/12497216/visual-studio-2012-will-not-save-overwrite-read-only-files/31002160#31002160?newreg=e561de8052a64947859624be18f4fadd 第一个回答: selected "None" in the Tools>>Options>>Source Control>>Plu…