如何使用sys.stdout.write()
来完成print
语句下面的内容 -
coeff = [6, 1, 0]
print "The coefficients a, b & c are: ", coeff
>>>The coefficients a, b & c are : [6, 1, 0]
答案 0 :(得分:0)
我认为
sys.stdout.write('The coefficients a, b & c are : ' + str(coeff) + "\n")
工作正常。