print 'hello,python.'
print 'hello,','python.'
print 'hello,','python.'
2017-01-22
t=('Adam', 'Lisa', 'Bart')和tuple=('Adam', 'Lisa', 'Bart')是等价的
2017-01-22
L.append(' ')也可以,L.append (' ') 也可以 append后面加空格也是可以的
2017-01-22
已采纳回答 / 慕丝9938033
你把你的程序放到常用的编辑器里面看报错‘IndentationError: unexpected indent ’这是错误提示原因就是你在for前面多打了一个空格
2017-01-22
d = { 'Adam': 95, 'Lisa': 85, 'Bart': 59, 'Paul': 74 }
sum = 0.0
for i in d.values():
sum = sum + i
print sum / 4
sum = 0.0
for i in d.values():
sum = sum + i
print sum / 4
2017-01-22
L = 'abc'
print L[0].upper() + 'b' + 'c'
我竟然写出了这个 - -!
print L[0].upper() + 'b' + 'c'
我竟然写出了这个 - -!
2017-01-22