标签: python-3.x path
有人可以解释一下,这让我发疯了:
text = '!!!advanced_search.png' path = './images/' + text.split('!!!')[1] print(path) # -> ./images/advanced_search.png print(os.path.exists(path)) # -> False print(os.path.exists('./images/advanced_search.png')) # -> True