首页 新闻 会员 周边

if os.path.isfile(account_file):在做判断是,前一步获取的account_file类型为str

0
[已关闭问题] 关闭于 2018-09-30 22:49

db_path = db_handler.db_handler()

account_file = '%s/accounts/%s.json' % (db_path,account)

print(type(account_file))
 -----><class 'str'>
以下的if判断不能成立
if os.path.isfile(account_file):

如何处理

问题补充:

乀崋的主页 乀崋 | 初学一级 | 园豆:158
提问于:2018-09-27 10:17
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册