def isFileEmpty(filepath):
'''判断文件的内容是否为空'''
fileSize = os.stat(filepath).st_size
if fileSize == 0:
return True
else:
return False
Python判断问价是否为空
最新推荐文章于 2024-04-03 15:58:19 发布