大佬们,如何把开头变成input函数跳出只能算五个数的局限
python吧
全部回复
仅看楼主
level 6
寄寄zi
楼主
我用这个列表用input衔接会报错
2023年02月20日 16点02分
1
level 12
microroom
第3行改成my_list=list(map(int,input().split()))
输入时用空格分隔各数据,如:
5 12 9 214
2023年02月20日 17点02分
0
寄寄zi
大佬,这个map有什么作用吗
2023年02月21日 16点02分
饼蛙✨
@寄寄zi
map = lambda callable, *iterables: (callable(args) for args in zip(*iterables))
2023年03月17日 13点03分
level 12
wtx621
第3行:my_list = [int(n) for n in input('请输入数据(用空格分开):').split()]
2023年02月21日 00点02分
4
1