当我调试代码时,会发生更改,但是当我打开文件时,什么都没有更改。你知道吗
代码
from ofxparse import OfxParser
from datetime import datetime as dt
# opening ofx file
with open('/home/jovani/Downloads/ofx.ofx') as file:
# Parser
ofx = OfxParser.parse(file)
#finding transactions
transactions = ofx.account.statement.transactions
now = dt.now() # I'll use this id like
for fitid in transactions: #performing changes and it happens
fitid_before = fitid.id
fitid_after = now.strftime("%Y%m%d%f")
fitid = fitid_after
后来,一切都没有改变ofx.ofx的文件。你知道吗
你在问为什么文件没有更改。你知道吗
相关问题 更多 >
编程相关推荐