code convention in python

Published by onesixx on

Naming

BaseNm (File+Ext), Directory Folder, Path

path dirname+ baseNm 특정파일까지의 경로 (abs/rel/realpath)

dirNm directory 파일없이 경로만 목적으로가지고 연관된파일을 묶어놓은 그룹/공간 (GUI folder)

baseNm basename fileNm + extNm

https://stackoverflow.com/questions/2235173/what-is-the-naming-standard-for-path-components

B. foo.src A. foo C. src E. C:\users\OddThinking\Documents\My Source\Widget\ (i.e. the absolute path of the root) F. Widget\foo.src (i.e. the relative path of the file) I. C:\users\OddThinking\Documents\My Source\Widget\foo.src

B) baseName

A) fileName

C) fileExtension

E) baseDirectory

F) relativePath

I) fullPath

Categories: Python Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x