在循环中创建变量名 [英] Creating variable names in a loop

查看:86
本文介绍了在循环中创建变量名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建150个变量名.一直到150,它们都必须像"varName01","varName01"一样.如何使用for或while循环执行此操作?


谢谢!

Sundeep

I need to create 150 variable names. They must be like "varName01" , "varName01" all the way to 150. How do I do this using a for or while loop?


thanks!

Sundeep

推荐答案

请不要在多个论坛中发布相同的问题. 此处 a> [ ^ ].
Please do not post the same question in multiple forums. This has already been answered here[^].


这篇关于在循环中创建变量名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆