【发布时间】:2016-05-10 22:51:22
【问题描述】:
我想打印字典中的值,不带任何间距。
这是对我的代码的测试:
d = {}
d["char12"] = "test"
d["char22"] = "test"
print d["char12"],
print d["char22"]
输出是
test test
但我需要它:
testtest
有没有办法消除自动间距?
谢谢!
【问题讨论】:
标签: python string dictionary spacing