标签: python object format
print ("Item: {:15} item Cost £{:5.2f} No Items: {:2} Total Cost: £{:5.2f} ".format(a_item, a_cost, a_num, a_totalcost))
错误消息:
TypeError: non-empty format string passed to object.__format__
我已经尝试但似乎无法找到如何解决它请帮助!