os.path.isfile () the correct usage (correct usage)

Before the Internet to find os.path.isfile () is used; found some wrong, mainly because incoming parameter is a relative path, not an absolute path.

However, after my experiment found: os.path.isfile () requires incoming parameter is the absolute path ! ! ! !

Guess you like

Origin www.cnblogs.com/elitphil/p/12049543.html