当前位置:网站首页>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]"
边栏推荐
- 【TkInter】布局管理和事件系统
- Ionic4 learning notes 13 - Classification List of an East Project
- 线程的生命周周期和基本方法
- 04 distributed resource management system yarn
- redis 数据类型
- [Tkinter] layout management and event system
- 2020-2021 new technology lecture course
- Why is gradient the fastest changing direction of function
- 2022杭电多校第二场1009 ShuanQ(数学)
- Go Xiaobai implements a simple go mock server
猜你喜欢

狂神redis笔记11

EasyUI adds row level buttons to the DataGrid
![[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

matplotlib

Make C #

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

Network security port 80 - PHP CGI parameter injection Execution Vulnerability

OpenGL learning (IV) glut 3D image rendering

epoch,batch_ size

Calling startActivity() from outside of an Activity context requires the FLAG_ ACTIVITY_ NEW_ TASK flag
随机推荐
core dump
ETL开发工具Kettle下载安装环境搭建及使用教程
[Tkinter] layout management and event system
TCL programming style guide
OpenGL learning (III) glut two-dimensional image rendering
Type-C边充边听PD协议芯片
【Tkinter】常用组件(二)
Go Xiaobai implements a simple go mock server
Escape character in JS?
字符串的遍历及拼接
What are the benefits of knowledge management in enterprises?
Cf. bits and pieces (subset pressing DP + pruning)
理解corners_align,两种看待像素的视角
Missing value processing
The assignment and answer of the "Cyberspace Security" competition of the 2020 secondary vocational group in Zhejiang Province (flag)
Rookie colleagues cost me 2K. Did you recite the secret of salary increase? (collect it quickly!)
投资的新阶段
为什么梯度是函数变化最快的方向
Ionic4 learning notes 11 - popular goods display of an East Project
Ionic4 learning notes 8 -- UI component 2 list (no practice, direct excerpt)