python列表输出去掉引号,如何从列表输出中删除逗号和引号

很难把这些引号和逗号从我的列表中去掉

**SHOWN BELOW IN THE SECOND PART OF MY CODE OUTPUT**我需要从输出中剥离所有(''',),我一直在我的team variable上尝试rstrip(),但它给了我这个错误。在TypeError: Can't convert 'int' object to str implicitly

我认为我的代码可能是构建错误的……但这是为了防止自己破坏代码并重新开始的最后努力

^{pr2}$

———————————————————————————————————————————————————————————Welcome to the world series team count report generator.

Choose an option from the following list.

1: Find out the count of wins for a single team.

2: Run a report showing all teams with their count of wins.

3: Exit the program.

Enter your choice: 2

Team Count of Wins

------------------------------

Team Name Wins

('Anaheim Angels', 1)

('Arizona Diamondbacks', 1)

('Atlanta Braves', 1)

('Baltimore Orioles', 3)

('Boston Americans',

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值