How to define a variable inside the print function?

前端 未结 2 488
轮回少年
轮回少年 2021-01-24 03:28

I am a newbie in this field, and I am trying to solve a problem (not really sure if it is possible actually) where I want to print on the display some information plus some inpu

2条回答
  •  春和景丽
    2021-01-24 04:13

    no this is not possible. well except something like

     x=input("tell me:");print("blah %s"%(x,));
    

    but thats not really one line ... it just looks like it

提交回复
热议问题