当前位置:网站首页>Tclsh array operation
Tclsh array operation
2022-07-24 18:49:00 【U.2 SSD】
Tclsh Array operation
array set
array set Student {
LiLei 29
Gray 31
Rose 23
}
Traverse array
foreach {name age} [array get Student "L*"] {
puts "Name: $name\tAge: $age"
}
verification Array Whether there is
if [array exists Student] {
puts "Array Student has existed"
}
Traverse 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]"
边栏推荐
猜你喜欢

网络安全80端口—-PHP CGI参数注入执行漏洞

【微信小程序开发】自定义tabBar案例(定制消息99+小红心)

Nacos简介和控制台服务安装

QT—动画框架

National vocational college skills competition network security competition -- detailed explanation of Apache security configuration

Understand corners_ Align, two perspectives for viewing pixels

Crazy God redis notes 11
![[today in history] July 24: caldera v. Microsoft; Amd announced its acquisition of ATI; Google launches chromecast](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 24: caldera v. Microsoft; Amd announced its acquisition of ATI; Google launches chromecast

Understand dynamic calculation diagram, requires_ grad、zero_ grad

Go Xiaobai implements a simple go mock server
随机推荐
理解corners_align,两种看待像素的视角
Traversal and splicing of strings
OPENGL学习(三)GLUT二维图像绘制
FPGA 20个例程篇:9.DDR3内存颗粒初始化写入并通过RS232读取(上)
16. What is the difference between target and currenttarget?
Ionic4 learning notes 13 - Classification List of an East Project
04-分布式资源管理系统YARN
Zip compression and decompression
OpenGL learning (II) opengl rendering pipeline
OpenGL learning (III) glut two-dimensional image rendering
ETL development tool kettle download installation environment construction and use tutorial
L4L7负载均衡
PCIe link initialization & Training
13. What is the difference between onkeydown, up and onkeypress?
Rookie colleagues cost me 2K. Did you recite the secret of salary increase? (collect it quickly!)
Analysis of dropout principle in deep learning
Network security port 80 - PHP CGI parameter injection Execution Vulnerability
2022杭电多校第一场Dragon slayer(dfs+状态压缩)
[wechat applet development] custom tabbar case (custom message 99 + little hearts)
使用der格式公钥生成publicKey报错