表达最后加print为什么结果不一样?
print [m + n for m in 'ABC' for n in '123']
和
L = [] for m in 'ABC': for n in '123': print L.append(m + n)
结果为什么不一样???
print [m + n for m in 'ABC' for n in '123']
和
L = [] for m in 'ABC': for n in '123': print L.append(m + n)
结果为什么不一样???
2018-07-27
举报