【发布时间】:2017-04-05 16:08:37
【问题描述】:
假设我在 python 中有一个print 语句:
print "components required to explain 50% variance : %d" % (count)
这个语句给出了ValuError,但是如果我有这个print 语句:
print "components required to explain 50% variance"
为什么会这样?
【问题讨论】:
-
print "components required to explain 50%% variance : %d" % (count) -
.format更复杂,只是提醒一下
标签: python