python怎么隔一个字符输出?因为Python2和Python3的输出有差异,所以在这里分别以Python2和Python3为例:
python3:加入end= ' '参数。
python2:以逗号结尾。 两个例子如下:
>>> a = [1, 2, 3, 4]