#!/usr/bin/env tclsh
if {$argc >= 1} {
set name [lindex $argv 0]
} elseif {$argc == 0} {
set name "you"
}
puts "One for $name, one for me."
2019-11-28
Tcl: Two Fer
Create a sentence of the form "One for X, one for me.".
2019-11-17
Tcl: Group the strings to concatenate together
set s "Hello "
set t "Tcl"
set u "!"
puts $s$t$u
也可以先設到某個變數,再印出來:
set s "Hello "
set t "Tcl"
set u "!"
set str $s$t$u
puts $str
感覺還蠻有趣的。
2019-11-13
Twitter feed for news and Tcl
@TclLang - Twitter feed for news about happenings in the Tcl world.
我之前沒注意到,這是 Tclers's wiki 的官方帳號嗎?不是很確定。
我之前沒注意到,這是 Tclers's wiki 的官方帳號嗎?不是很確定。
訂閱:
文章 (Atom)