所以我在PHP商店工作,我们都使用不同的编辑器,我们都必须在Windows上工作.我使用vim,商店里的每个人都在抱怨每当我编辑一个文件时,底部都会有一个换行符.我四处搜索,发现这是vi&vim的记录行为......但我想知道是否有某种方法可以禁用此功能.(如果我可以为特定的文件扩展名禁用它,那将是最好的).
如果有人知道这一点,那就太好了!
我正在运行linux.我可以执行类似的操作pylint --generate-rcfile > .pylintrc,然后对生成的.pylintrc文件进行更改以覆盖默认设置吗?如果是这样,它应该在我的~/目录中,还是应该放在.pylint.d中?
Pylint在我调用函数"deletdcmfiles()"的最后一行抱怨."最后的换行线丢失".我是python的新手,我不确定是什么触发了这个?
这是程序的代码:
'''
This program will go through all Work subdirectorys in "D:\\Archvies" folder
and delete all DCM files older then three months.
'''
import os.path
import glob
import time
#Create a list of Work directorys in Archive folder
WORKDIR = glob.glob("D:\\Archives\\ASP*\\Work*")
#Variable holds three months of time in seconds
THREEMONTHSOLD = (time.time()) - (90 * 86400)
def deletdcmfiles():
'''
This function will go through all Work subdirectorys in "D:\\Archvies" folder
and delete all DCM files older then three months. …Run Code Online (Sandbox Code Playgroud)