首页 > 解决方案 > 删除字符串末尾的逗号

问题描述

如何在最后删除逗号??在python中

s=input()
for i in s :
print(i,end=",")

输出

sabari

s,a,b,a,r,i,

标签: python-3.x

解决方案


推荐阅读