def instrument4(id,ntl=1,curR='CNY',*args):
pv=0
for n in args:
pv=pv+n
print('id:',id)
print('notional:',ntl)
print('reporting currency:',curR)
print('present value:',pv*ntl)
instrument3('MM1001',1000,'USD',1,2,3)
报错显示:
print('id:',id)
^
IndentationError: unindent does not match any outer indentation level
但是之前也是这个程序,都能运行
def instrument3(id,ntl=1,curR='CNY'):
print('id:',id)
print('notional:',ntl)
print('reporting currency:',curR)
instrument3('MM1001',curR='USD',ntl=1000)
求帮忙,到底是哪里的问题啊?