小编ped*_*.py的帖子

如何将元组中的每个元素除以单个整数?

我想将元组除以整数。我期望这样的事情:

tuple = (10,20,30,50,80)
output = tuple/10
print(output)
output = (1,2,3,5,8)
Run Code Online (Sandbox Code Playgroud)

python

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

python ×1