Variables in a loop

前端 未结 9 1552
眼角桃花
眼角桃花 2020-12-19 18:32

I was wondering whether there\'s a way in a \"for\" loop to assign a value to a string variable named according to its index number?

let\'s say I have 3 string varia

9条回答
  •  情话喂你
    2020-12-19 18:56

    You can't do that (well, not sanely). Have you considered using an array of strings instead?

提交回复
热议问题