当前位置:网站首页>Tclsh Array操作
Tclsh Array操作
2022-07-21 11:19:00 【U.2 SSD】
Tclsh Array操作
array set
array set Student {
LiLei 29
Gray 31
Rose 23
}
遍历array
foreach {name age} [array get Student "L*"] {
puts "Name: $name\tAge: $age"
}
验证Array是否存在
if [array exists Student] {
puts "Array Student has existed"
}
遍历Array
set StudentID [array startsearch Student]
while {[array anymore Student $StudentID]} {
puts "------------"
puts [array nextelement Student $StudentID]
after 5000
}
array donesearch Student $StudentID
Array Size
puts "Array Size: [array size Student]"
边栏推荐
- Part 92 inter contract transfer (I)
- 一次血的教训 记npm package-lock.json导致的腥风血雨
- Intel assembler programming - integer arithmetic instructions (Part 1)
- Design and application of prepaid platform on power reform policy
- Part 103 decimals in compound
- MySQL终章
- 百度世界2022,明天见!
- Chapter 97 notes - abstraction in solidity
- asp.net coree文件上传与下载实例
- 真人踩过的坑,告诉你避免自动化测试新手常犯的10个错误
猜你喜欢
SCA在得物DevSecOps平台上应用
A trick to teach you how to master online videos
数据中心末端直流配电系统产品的应用
大型体育场馆应急照明设计
如何搭建一个好的知识库管理系统?
浅谈npm 构建流程及package.json和 package.lock.json的工作流程
代码管理(新手)
CLion配置WSL工具链
科创人·观远数据CEO苏春园:让业务用起来,是BI行业推倒渗透率之墙的关键
Run busybox, buildroot, loognix, qt5.12 system for Godson development board process
随机推荐
nmap 扫描命令
"F5g+eiot" build the energy Internet of things and help the data service of the power Internet of things
yii2 JsBlock::begin 无效问题
H3C构建中小型企业网络(NE)
Advanced Fruits(公共子序列)
免费开源的网址导航源码收集整理汇总-自建个人导航主页
GSYVideoPlayer滑动刷新视频
(number theory board) sum of divisors and divisors
匿名内部类在开发中的使用
Talking about the application of service worker in caching resources and web push
线程理论知识
读《读大学,究竟读什么》读后感
Talking about NPM construction process and package JSON and package lock. Workflow of JSON
jdbc批量插入10万/100万条数据
Cesium使用czml来实现动态路线
Part 99 Ganache of truffle
Lsky Pro兰空图床安装与使用:一个用于在线上传,管理图片的图床程序
Ansvc reactive power compensation device helps an environmental protection energy project in Jiangsu
CLion配置WSL工具链
从0开始实现一个代理池