- def removeDir(dirPath):
- '''
- Created by Wu Yongcong 2017-8-18
- :param dirPath:
- :return:
- '''
- if not os.path.exists(dirPath):
- raise FileException("input error!not exist dirPath")
- else:
- shutil.rmtree(dirPath)
- def mkdirPath(dirPath):
- '''
- :param dirPath:
- :return:
- Created by Wu Yongcong 2017-8-18
- 递归创建输入的路径下面的文件夹或文件
- '''
- if os.path.exists(dirPath):
- raise FileException("input error!the dirPath is exist")
- else:
- os.makedirs(dirPath)
我有个朋友是爵士音乐家,他有次跟我说:如果你不是乐队里最差的演奏者,马上换支乐队。我现在在Spotify工作,在这里我每天都觉得自己是个【狗屁程序员】,也因此我离开了上一家公司,从Spotify重头开始。当我在这里再也感觉不到自己是个【狗屁程序员】的时候,我会选择离开,然后找一个能让我再次感到自己是坨屎的地方。这种策略在我的职业生涯里确实 帮了我大忙。
------译自 Quora