【发布时间】:2012-10-04 08:49:46
【问题描述】:
可能重复:
How to print in Python without newline or space?
How to print a string without including ‘\n’ in Python
我的代码如下所示:
print 'Going to %s'%href
try:
self.opener.open(self.url+href)
print 'OK'
当我执行它时,我明显得到两行:
Going to mysite.php
OK
但想要的是:
Going to mysite.php OK
【问题讨论】: