We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
不想用 try 语句,如何判断一个文件是否存在?
try
答案是:
import os.path os.path.isfile(file_name)