执行以下语句:
for ticker in tickers: print("/user/code/"<ticker>".txt")
结果都是真的。
也许你应该这样做:
file = open("/user/code/" + ticker + ".txt")