怎么python编写程序运行后输入123输出1,2,3
提问:怎么python编写程序运行后输入123输出1,2,3
网友回答:
参考:
a=input()
f=True
for c in a:
if f:
print(c,end='')
f=False
else:
print(",",c,end='')
其中的f为控制逗号
结果
提问:怎么python编写程序运行后输入123输出1,2,3
网友回答:
参考:
a=input()
f=True
for c in a:
if f:
print(c,end='')
f=False
else:
print(",",c,end='')
其中的f为控制逗号
结果
盒子游戏,游戏玩家专属个性阅读社区