TCL测试题目(B卷及答案).pdfVIP

  • 165
  • 0
  • 约3.49千字
  • 约 3页
  • 2023-06-16 发布于上海
  • 举报
TCL 测试题目(B 卷) 一、填空题(每题 3 分,共 30 分) 1、regexp { ([0-9]+) *([a-z]+)} there is 100 apples total num word puts $total ,$num,$word 最后输出结果为 100 apples ,100,apples 2、regsub there They live there lives their x puts $x 最后输出结果为 They live their lives 3、(每空 1 分) TCL 提供三种形式的置换:变量置换、命令置换和反斜杠置换。 4、set x 10 set y $x+100 最后输出结果为 10+100 5、(每空 1 分) set x 100 set y “$x ddd” 此句输出内容为 100 ddd set y {/n $x } 此句输出内容为 /n $x set y [expr {$x+10}] 此句输出内容为: 110 6、建立一个数组 day,它有两个元素 monday,tuesday,值分别为 1 2 创建语句为:se

文档评论(0)

1亿VIP精品文档

相关文档