How to Pass Variable?

前端 未结 2 1369
清歌不尽
清歌不尽 2020-12-12 06:54

I create code like following. I want to pass the variable rand and randd in the

iret = iim2.iimPlay(\"rand\")
iret = iim1.iimPlay(         


        
2条回答
  •  猫巷女王i
    2020-12-12 07:47

    Short answer: remove the quotes like this:

    iret = iim2.iimPlay(rand)

    iret = iim1.iimPlay(randd)

    You are passing strings called "rand" and "randd". Variables aren't encased in quotes. In addition, you are constructing the same object (iret) twice, I'm not sure why. You may have other issues as well, but this is a good start.

提交回复
热议问题