当前位置:网站首页>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]"
边栏推荐
- [today in history] July 24: caldera v. Microsoft; Amd announced its acquisition of ATI; Google launches chromecast
- 为什么梯度是函数变化最快的方向
- 【TkInter】常用组件(一)
- 暑期牛客多校1: I Chiitoitsu(期望dp,求逆元)
- 理解corners_align,两种看待像素的视角
- Valentine's Day gift ----- use her photos and our chat records to generate word clouds~
- Tcl/tk file operation
- OPENGL学习(二)OPENGL渲染管线
- 多线程与并发编程常见问题(未完待续)
- 投资的新阶段
猜你喜欢

QT - animation frame

Typora user manual

Missing value processing

Ionic4 learning notes 9 -- an east project 01

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

Ionic4 learning notes 4 -- add a tab page

MySQL - bufferpool related information

Network security port 80 - PHP CGI parameter injection Execution Vulnerability

全国职业院校技能大赛网络安全竞赛之数据分析数字取证-A

L4L7负载均衡
随机推荐
Data analysis of network security competition of national vocational college skills competition digital forensics-a
4. Basic type and reference type?
C Programming classic tutorial
Typora user manual
We have to understand the four scopes: application, session, request and page
[Tkinter] layout management and event system
9. BOM object?
永恒之蓝MS17-010exp复现
04 distributed resource management system yarn
QT - animation frame
Attack and defense world novice zone PWN
Cryptography knowledge - Introduction to encryption -1
Sqoop
Ionic4 learning notes 11 - popular goods display of an East Project
Ionic4 learning notes 5-- custom public module
Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
Common problems of multithreading and concurrent programming (to be continued)
卷积神经网络感受野计算指南
Vsftpd2.3.4-端口渗透 6200 irc_3281_backdoor
National vocational college skills competition network security competition -- detailed explanation of Apache security configuration