很难把这些引号和逗号从我的列表中去掉
**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',