<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://calcwiki.org/index.php?action=history&amp;feed=atom&amp;title=TI-Lua%2FHello%2C_World%21</id>
	<title>TI-Lua/Hello, World! - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://calcwiki.org/index.php?action=history&amp;feed=atom&amp;title=TI-Lua%2FHello%2C_World%21"/>
	<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;action=history"/>
	<updated>2026-05-04T01:14:24Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;diff=8299&amp;oldid=prev</id>
		<title>Dousha99：​添加导航栏</title>
		<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;diff=8299&amp;oldid=prev"/>
		<updated>2017-02-11T13:17:23Z</updated>

		<summary type="html">&lt;p&gt;添加导航栏&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2017年2月11日 (六) 13:17的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot;&gt;第45行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第45行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 尝试让计算器输出您喜欢的信息&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 尝试让计算器输出您喜欢的信息&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 尝试将输出的信息移动到其他的位置&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 尝试将输出的信息移动到其他的位置&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{TI-Lua}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key calcwiki-cw_:diff:1.41:old-7739:rev-8299:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Dousha99</name></author>
	</entry>
	<entry>
		<id>https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;diff=7739&amp;oldid=prev</id>
		<title>Dousha99：​/* 代码 */  fix typo</title>
		<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;diff=7739&amp;oldid=prev"/>
		<updated>2016-06-15T15:27:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;代码：​&lt;/span&gt;  fix typo&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2016年6月15日 (三) 15:27的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;第15行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第15行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end -- 绘图事件结束&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end -- 绘图事件结束&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;platform.window:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;invaildate&lt;/del&gt;() -- 刷新屏幕&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;platform.window:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;invalidate&lt;/ins&gt;() -- 刷新屏幕&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key calcwiki-cw_:diff:1.41:old-7738:rev-7739:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Dousha99</name></author>
	</entry>
	<entry>
		<id>https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;diff=7738&amp;oldid=prev</id>
		<title>Dousha99：​Hello, World!</title>
		<link rel="alternate" type="text/html" href="https://calcwiki.org/index.php?title=TI-Lua/Hello,_World!&amp;diff=7738&amp;oldid=prev"/>
		<updated>2016-06-15T15:26:36Z</updated>

		<summary type="html">&lt;p&gt;Hello, World!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;此章我们将学习最基本的 &amp;#039;&amp;#039;&amp;#039;Hello, World!&amp;#039;&amp;#039;&amp;#039; 程序。&lt;br /&gt;
&lt;br /&gt;
这个程序将会向屏幕输出 &amp;quot;Hello, World!&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
这个程序是通用的。您可以使用任何您喜欢的编程方式——使用电脑或直接在计算器上编程均可。&lt;br /&gt;
&lt;br /&gt;
== 代码 ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=lua&amp;gt;&lt;br /&gt;
-- &amp;lt;- 这个符号之后的内容为注释&lt;br /&gt;
-- 注释不影响程序运行，您可以不输入注释&lt;br /&gt;
-- 您看到的代码可能是彩色的，这是名为「代码高亮」的功能&lt;br /&gt;
-- 您的编辑器可能会使用不同的配色&lt;br /&gt;
function on.paint(gc) -- 绘图事件&lt;br /&gt;
    gc:drawString(&amp;quot;Hello, World!&amp;quot;, 5, 5, &amp;quot;top&amp;quot;) -- 在 (5, 5) 处按照 top 对齐方式输出字符串 Hello, World!&lt;br /&gt;
end -- 绘图事件结束&lt;br /&gt;
&lt;br /&gt;
platform.window:invaildate() -- 刷新屏幕&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 总结 ==&lt;br /&gt;
&lt;br /&gt;
注释以 &amp;lt;code&amp;gt;--&amp;lt;/code&amp;gt; 开始，该符号之后一行的内容都为注释。注释不参与程序运行。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;function&amp;lt;/code&amp;gt; 表示一个函数，以 &amp;lt;code&amp;gt;end&amp;lt;/code&amp;gt; 结尾。&lt;br /&gt;
&lt;br /&gt;
一个函数包含函数名和参数表，参数表用小括号包围。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;function on.paint(gc)&amp;lt;/code&amp;gt; 接管绘图事件，其中&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;gc&amp;lt;/code&amp;gt; 是图形上下文，包含绘制图形的必须函数。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;gc:drawString(str, x, y [, align])&amp;lt;/code&amp;gt; 用于绘制文字，包含 4 个参数，其中 1 个可选参数，其参数为&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;str&amp;lt;/code&amp;gt; - 要输出的文字&lt;br /&gt;
* &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; - 首字符 x 坐标，单位为像素&lt;br /&gt;
* &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; - 首字符 y 坐标，单位为像素&lt;br /&gt;
* &amp;lt;code&amp;gt;align&amp;lt;/code&amp;gt; - 可选，指定文字相对于指定位置的对齐方式，其值类型为字符串，仅可为下列值之一：&lt;br /&gt;
** &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; - 默认值，按照解释器给定方式对齐；这种方式可能会导致格式&lt;br /&gt;
** &amp;lt;code&amp;gt;top&amp;lt;/code&amp;gt; - 首字符顶端处于指定位置&lt;br /&gt;
** &amp;lt;code&amp;gt;bottom&amp;lt;/code&amp;gt; - 首字符底端处于指定位置&lt;br /&gt;
** &amp;lt;code&amp;gt;baseline&amp;lt;/code&amp;gt; - 首字符基线处于指定位置&lt;br /&gt;
&lt;br /&gt;
== 练习 ==&lt;br /&gt;
&lt;br /&gt;
* 尝试让计算器输出您喜欢的信息&lt;br /&gt;
* 尝试将输出的信息移动到其他的位置&lt;/div&gt;</summary>
		<author><name>Dousha99</name></author>
	</entry>
</feed>