python-3.x - 删除字符串末尾的逗号
问题描述
如何在最后删除逗号??在python中
s=input()
for i in s :
print(i,end=",")
输出
sabari
s,a,b,a,r,i,
解决方案
推荐阅读
- javascript - 如何将 chess.js 导入 Create React App
- python - Matplotlib 注释更改字体
- javascript - 如果输入值为空或 null,如何防止函数运行?香草 JavaScript
- c# - 如何让两个物体在碰撞时粘在一起?(统一 3d) C#
- java - 快速 Java 匿名函数/类问题
- ios - 带有链接的 UITextView:VoiceOver 如何选择要点击的链接?
- html - 为什么子元素不相对于其父元素移动?
- java - Jetty如何处理Threads和ThreadPools,它占用了太多内存
- uwp - 打包一套 UWP 应用
- r - 如何将包含值和频率的表转换为 RStudio 中的单个列表?