When I do exercises, I will encounter that the length in the array is uncertain , And require input , How to input at this time ?
When I write and input oneortwo, I can , But no more ideas
a,b=int(input().split())
Or use
a,b=eval(input())
If the input encountered is uncertain , I don't understand , Come to a big guy to help me !!!
I can't find the specific type of questions for the time being , But I feel I've met many , No idea ......
The number of fixed inputs is
m,n = map(int,input().split())
Uncertain number of inputs , Generating a list is
lst = list(map(int,input().split()))
If help , Please click... Below my answer 【 Adopt the answer 】 Button to help adopt , thank you !