.format()格式输出

print("x.shape = ", x.shape)
print('x.shape={}'.format(x.shape))

上面二者的输出一样

猜你喜欢

转载自blog.csdn.net/ziqingnian/article/details/109132606
今日推荐