- 浏览: 1448559 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (691)
- linux (207)
- shell (33)
- java (42)
- 其他 (22)
- javascript (33)
- cloud (16)
- python (33)
- c (48)
- sql (12)
- 工具 (6)
- 缓存 (16)
- ubuntu (7)
- perl (3)
- lua (2)
- 超级有用 (2)
- 服务器 (2)
- mac (22)
- nginx (34)
- php (2)
- 内核 (2)
- gdb (13)
- ICTCLAS (2)
- mac android (0)
- unix (1)
- android (1)
- vim (1)
- epoll (1)
- ios (21)
- mysql (3)
- systemtap (1)
- 算法 (2)
- 汇编 (2)
- arm (3)
- 我的数据结构 (8)
- websocket (12)
- hadoop (5)
- thrift (2)
- hbase (1)
- graphviz (1)
- redis (1)
- raspberry (2)
- qemu (31)
- opencv (4)
- socket (1)
- opengl (1)
- ibeacons (1)
- emacs (6)
- openstack (24)
- docker (1)
- webrtc (11)
- angularjs (2)
- neutron (23)
- jslinux (18)
- 网络 (13)
- tap (9)
- tensorflow (8)
- nlu (4)
- asm.js (5)
- sip (3)
- xl2tp (5)
- conda (1)
- emscripten (6)
- ffmpeg (10)
- srt (1)
- wasm (5)
- bert (3)
- kaldi (4)
- 知识图谱 (1)
最新评论
-
wahahachuang8:
我喜欢代码简洁易读,服务稳定的推送服务,前段时间研究了一下go ...
websocket的helloworld -
q114687576:
http://www.blue-zero.com/WebSoc ...
websocket的helloworld -
zhaoyanzimm:
感谢您的分享,给我提供了很大的帮助,在使用过程中发现了一个问题 ...
nginx的helloworld模块的helloworld -
haoningabc:
leebyte 写道太NB了,期待早日用上Killinux!么 ...
qemu+emacs+gdb调试内核 -
leebyte:
太NB了,期待早日用上Killinux!
qemu+emacs+gdb调试内核
http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial.html
输出:
--------------------------
------又发现搞笑代码了--魔幻语言就是让人容易误解--
输出:
http://www.tcl.tk/man/tcl/tutorial/Tcl12.html
puts "Hello, World - In quotes" ;# This is a comment after the command. # This is a comment at beginning of a line puts {Hello, World - In Braces} puts "This is line 1"; puts "this is line 2" puts "Hello, World; - With a semicolon inside the quotes" # Words don't need to be quoted unless they contain white space: puts HelloWorld puts {Bad comment syntax example} # *Error* - there is no semicolon!
输出:
Hello, World - In quotes Hello, World - In Braces This is line 1 this is line 2 Hello, World; - With a semicolon inside the quotes HelloWorld wrong # args: should be "puts ?-nonewline? ?channelId? string" while executing "puts {Bad comment syntax example} # *Error* - there is no semicolon!" (file "helloworld.tcl" line 10)
--------------------------
set x 1 # This is a normal way to write a Tcl while loop. while {$x < 5} { puts "x is $x" set x [expr {$x + 1}] }
for {set i 0} {$i < 10} {incr i} { puts "I inside first loop: $i" }
------又发现搞笑代码了--魔幻语言就是让人容易误解--
proc sum {arg1 arg2} { set x [expr {$arg1 + $arg2}]; return $x } puts " The sum of 2 + 3 is: [sum 2 3]\n\n" proc for {a b c} { puts "The for command has been replaced by a puts"; puts "The arguments were: $a\n$b\n$c\n" } for {set i 1} {$i < 10} {incr i}
输出:
The sum of 2 + 3 is: 5 The for command has been replaced by a puts The arguments were: set i 1 $i < 10 incr i
http://www.tcl.tk/man/tcl/tutorial/Tcl12.html
发表评论
-
xl2tp 备份
2019-09-24 16:25 5812019年9月24日更新: 注意,需要开启firewall ... -
sdl笔记
2019-01-31 17:19 692sdl教程教程 https://github.com/Twin ... -
tinyemu
2019-01-24 17:59 1406参考https://bellard.org/jslinux/t ... -
aws搭建xl2tp给iphone使用
2018-12-26 21:37 18192019年12月26日 可以参考原来的配置 https:// ... -
consul的基本使用
2017-06-27 11:13 1359### 安装 [centos7上consul的安装](ht ... -
lvs的helloworld
2017-06-13 20:36 566###################lvs######### ... -
系统调用的helloworld
2017-05-04 16:14 567《2.6内核标准教程》 p293 #include < ... -
bitcoin和cgminer的安装
2017-04-05 22:45 1926参考 http://blog.csdn.net/rion_ch ... -
ceph安装和常用命令
2017-03-21 21:55 917/etc/hosts ssh-keygen ssh-copy- ... -
mobile terminal 笔记
2016-12-02 15:35 551找出旧的iphone4 越狱之后可以变个小操作系统 mobi ... -
socket基础和select(python)
2016-06-14 17:21 1765上接 c语言的socket基础ht ... -
socket基础(c语言)
2016-06-14 16:45 953不使用select 普通的基础socket连接,对多个客户端的 ... -
ffmpeg+nginx 的直播(2,直播摄像头和麦克风)
2016-05-28 20:21 4264假设我的服务器是centos7 192.168.139.117 ... -
ffmpeg+nginx 的直播(1,直播播放的视频文件)
2016-05-26 17:11 652864位操作系统centos7 ############ 1.一 ... -
socat和netcat(nc)
2016-04-29 22:36 1683转 原文链接: http://www.wenquan.name ... -
neutron基础九(qemu nat网络)
2016-02-06 17:21 1559接上基础八,kvm透传nested忽略 1.在主机ce ... -
neutron基础八(qemu 桥接网络)
2016-02-06 13:13 1495qemu的桥接和nat的qemu启动命令是一样的,但是后续的脚 ... -
neutron基础七(qemu tap)
2016-02-02 17:02 977使用qemu 建立个虚拟机 然后用tap设备, 根据基础六,t ... -
neutron基础六(bridge fdb)
2016-01-28 18:30 2149转发表 在三台机器上建立三个namespace 192.16 ... -
南北流量
2016-01-23 23:26 1773一、三层网络架构: 接入层:负责服务器的接入和隔离 汇聚层:汇 ...
相关推荐
Hello, World! Tk 样式 34 Tk 演示 36 Tk 小部件的分类取样器 36 Tk 命令,第一部分 38 Tk 命令,第二部分 39 真的(小)Tk 应用程序 39 样本 Tk 应用程序 41 样本 Tk 应用程序对话框 41 开始认识 Expect 43 Expect ...
Tcl介绍 “Hello World” 程序及扩展 变量 数据类型 特殊字符 数据结构 控制结构 程序结构 语法要点 对数据库操作实例( oracle ) Socket编程实例 ktcl 文件及其冲值卡自服务修改密码例程 一些建议
hello,world! 变量 命令替换 数学表达式 反斜杠替换 使用花括号和双引号进行分组 过程 一个阶乘的例子 更多有关变量的知识 更多有关数学表达式的内容 注释 有关替换与分组的总结 要点 参考 第2章 ...
puts Hello World ;# 这行命令运行出错,被空格分隔 puts "Hello, World - In quotes" ;# 注释 puts {Hello, World - In Braces} # 这行命令运行出错,必须使用 ;# 作为注释符号 puts "This is line 1"; puts "this ...
shell脚本Tcl Eclipse设计环境Oracle SQL Developer Vmware工作站播放器动作脚本PLSQL Dos SVN PVCS Adobes Frame Maker Bitbake Yocto INCA Calibration嵌入式系统软件和驱动程序Linux上的Arium和ICE Audio AP
lua开发文档,当今武林,派别林立,语言繁杂,林林总总不计其数。主流文化的C/C++、Java、 C#、VB;偏安一隅的Fortran;动态语言中的Perl、Tcl、Ruby...可欣赏一下BrainFuck语言1的Hello World程序,语言本身依如其名
测试命令set hello world get hello 至此redis安装 并且操作成功。 /*******start 脚本*************/ redis的启动脚本在utils中为redis_init_script 其中需要变更下conf的文件路径才能正常使用 阅读全文
编程语言之于程序员,若武功招式之于习武之人,招式虽重要,但在于使用之人。胜者之道,武功只行于表,高手用剑,片草只叶亦威力无穷。...不信可欣赏一下BrainFuck语言1的Hello World程序,语言本身依如其名。
puts ‘hello world’ puts ‘我们都是’\ ‘中国人’ 运行结果: ruby 代码 3 6hello world 我们都是中国人 2.==,eql?,equal? 区别 ==值相等 eql?值相等,类型相等 equal?值相等,内存地址相等 a=1 b=1.0 c=1.0 d=...
1.2 hello,world! 1.3 变量 1.4 命令替代 1.5 数学表达式 1.6 反斜杠替代 1.7 花括号和双引号的组合 1.8 过程 1.9 阶乘举例 1.10 有关变量的更多细节 1.11 有关数学表达式的更多细节 1.12 ...
@ myobj.greeting -> {who} { puts "Hello, $who!" } 调用方法: @ myobj.greeting: "World" 方法可以通过“ this”变量访问字典: @ myobj.double -> {key} { @ this.$key := {2*[@ this.$key]} } 方法
title: helloworld. expect: helloworld. TC 然后执行zt脚本,zt脚本会扫描当前目录下面的带有用例标志的脚本,然后调用执行,得出每个脚本的实际输出,然后和用例里面事先记录好的预期结果进行比对,如果相匹配,...
print "Hello world!" loop 1..10 'x [ if? even? x - > print [x "is even" ] else - > print [x "is odd" ] ] 很简单,不是吗? :light_bulb: 有关更多示例示例,只需查看/ examples文件夹 文献资料 有关该...
小编最近由于工作原因要用到python,一门新的知识需要接触,对于我来说难度还是很大的。 python工程目录结构 ...小技巧:如果版本依赖出问题了,可以手动把lib下面的出sit-packages和tcl8.6这两个文件
简单TK 受python tkinter软件包的启发,这是一个非常简单的tcl/tk包装器,用于普通lisp。 例子 一个带有一个按钮的窗口... :text " Hello world " :command ( lambda () (window-destroy r))))) 上列出了更多示例。
第 一 章 Java概 述 § 1.1 Java语 言 出 现 的 背景 、 影 响 及 应 用 前 景 一 、 背 景 最 近 一 年 多 来 ,在 Internet上 出 现 的 特 别 吸 引 人 的 事 件 就是 Ja va语 言 和 用 Java编 写 的 浏 览 器...
The Hello World Selector Section 12.5. Coding for Maintainability Section 12.6. More on HTML and URL Escapes Section 12.7. Sending Files to Clients and Servers Chapter 13. Larger Web Site ...
2.1 程序输出,print语句及“Hello World!” 2.2 程序输入和raw_input()内建函数 2.3 注释 2.4 操作符 2.5 变量和赋值 2.6 数字 2.7 字符串 2.8 列表和元组 2.9 字典...