print("Loss is:{:.6f}, Train Accuracy is:{:.6f}%, Test Accuracy is:{:.6f}%".format(running_loss/len(data_train), 100*running_correct/len(data_train), 100*testing_correct/len(data_test)))


I’m sorry that I have divided the number of data, but the accuracy is still integer and doesn’t have fractional part.