str1 = 'IloveFishC.com'
print(*str1,sep="\n"")
仝相杰 发表于 2017-9-9 09:14
str1 = 'IloveFishC.com'
print(*str1,sep="\n"")
多打了一个标点符号,不过不影响结果
好好学习天天向上
print(*'IloveFishC.com', sep='\n')
6666
str1 = 'IloveFishC.com'
for i in str1:
print(i,end='\n')
结果
>>> ================================ RESTART ================================
>>>
I
l
o
v
e
F
i
s
h
C
.
c
o
m
>>>
str1 = 'ILoveFishC.com'
for i in str1:
print(i+'\n')
print('\n'.join(str1))
与
print(*str1, sep='\n')
会的人简单讲一下啦!!!
答案
学习一下答案
不用循环语句儿怎么做看看答案
看看
绝世好文,不得不顶
for ...in...
kankan
虽然不用,但还是支持了!!
print(*'IloveFishC.com', sep='\n')
a = "IloveFishC.com"
b = a.replace('','\n')
print b
1
str1 = 'IloveFishC.com'
print('\n'.join(str1))