python在print()中使用format的时候前面一定要有花括号{},否则值打印不上去
print("accuracy={}%".format(accuracy*100),"train_loss={}".format(tr),"test_loss={}".format(te))
#result
accuracy=15.625% train_loss=0.5962845087051392 test_loss=0.4416489899158478
python在print()中使用format的时候前面一定要有花括号{},否则值打印不上去
print("accuracy={}%".format(accuracy*100),"train_loss={}".format(tr),"test_loss={}".format(te))
#result
accuracy=15.625% train_loss=0.5962845087051392 test_loss=0.4416489899158478