input 2 variables separated by a comma in a single line

后端 未结 5 1346
长发绾君心
长发绾君心 2021-01-19 15:11

Is it possible to input 2 numbers int or float separated by a comma in a single line?

Say after the program runs it would ask the user to <

5条回答
  •  旧时难觅i
    2021-01-19 15:54

         x,y = input("Enter range: ")
    

    If you want them as numbers it's best not to use raw_input.

提交回复
热议问题