<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://www.33dai.wiki/index.php?action=history&amp;feed=atom&amp;title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95%2F04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97</id>
	<title>01-基础语法/04-赋值与数学运算 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://www.33dai.wiki/index.php?action=history&amp;feed=atom&amp;title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95%2F04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97"/>
	<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;action=history"/>
	<updated>2026-05-20T22:14:22Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=295&amp;oldid=prev</id>
		<title>33DAI：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=295&amp;oldid=prev"/>
		<updated>2026-05-20T18:12:08Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&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-Hans-CN&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;2026年5月20日 (三) 18:12的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-294:rev-295 --&gt;
&lt;/table&gt;</summary>
		<author><name>33DAI</name></author>
	</entry>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=294&amp;oldid=prev</id>
		<title>-&gt;Importer：​批量导入三三文档</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=294&amp;oldid=prev"/>
		<updated>2026-05-20T16:50:33Z</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;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年5月20日 (三) 16:50的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>-&gt;Importer</name></author>
	</entry>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=195&amp;oldid=prev</id>
		<title>33DAI：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=195&amp;oldid=prev"/>
		<updated>2026-05-20T16:25:02Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&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-Hans-CN&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;2026年5月20日 (三) 16:25的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff:1.41:old-194:rev-195 --&gt;
&lt;/table&gt;</summary>
		<author><name>33DAI</name></author>
	</entry>
	<entry>
		<id>https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=194&amp;oldid=prev</id>
		<title>-&gt;Importer：​批量导入三三文档</title>
		<link rel="alternate" type="text/html" href="https://www.33dai.wiki/index.php?title=01-%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95/04-%E8%B5%8B%E5%80%BC%E4%B8%8E%E6%95%B0%E5%AD%A6%E8%BF%90%E7%AE%97&amp;diff=194&amp;oldid=prev"/>
		<updated>2026-05-20T16:22:29Z</updated>

		<summary type="html">&lt;p&gt;批量导入三三文档&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&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;
计算右边表达式的值，然后把值存入左边变量中。&lt;br /&gt;
&lt;br /&gt;
整个赋值语句的值为赋值后的值，因此可以写 &amp;lt;code&amp;gt;a = b = c = 0;&amp;lt;/code&amp;gt; 这样的连续赋值。&lt;br /&gt;
&lt;br /&gt;
=== 语法糖 ===&lt;br /&gt;
&lt;br /&gt;
- &amp;lt;code&amp;gt;a += b;&amp;lt;/code&amp;gt; &amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; &amp;lt;code&amp;gt;a = a + b;&amp;lt;/code&amp;gt;&lt;br /&gt;
- &amp;lt;code&amp;gt;a -= b;&amp;lt;/code&amp;gt; &amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; &amp;lt;code&amp;gt;a = a - b;&amp;lt;/code&amp;gt;&lt;br /&gt;
- &amp;lt;code&amp;gt;a *= b;&amp;lt;/code&amp;gt; &amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; &amp;lt;code&amp;gt;a = a * b;&amp;lt;/code&amp;gt;&lt;br /&gt;
- &amp;lt;code&amp;gt;a /= b;&amp;lt;/code&amp;gt; &amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; &amp;lt;code&amp;gt;a = a / b;&amp;lt;/code&amp;gt;&lt;br /&gt;
- &amp;lt;code&amp;gt;a %= b;&amp;lt;/code&amp;gt; &amp;lt;math&amp;gt;\to&amp;lt;/math&amp;gt; &amp;lt;code&amp;gt;a = a % b;&amp;lt;/code&amp;gt;&lt;br /&gt;
- &amp;lt;code&amp;gt;a++;&amp;lt;/code&amp;gt; — 将 &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; 增加 &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;；作为表达式时，值为增加之前的值&lt;br /&gt;
- &amp;lt;code&amp;gt;++a;&amp;lt;/code&amp;gt; — 将 &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt; 增加 &amp;lt;math&amp;gt;1&amp;lt;/math&amp;gt;；作为表达式时，值为增加之后的值&lt;br /&gt;
&lt;br /&gt;
=== 数学运算符 ===&lt;br /&gt;
&lt;br /&gt;
- &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt;、&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;、&amp;lt;code&amp;gt;*&amp;lt;/code&amp;gt;、&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;、&amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt;：加法、减法、乘法、除法、取余/取模&lt;br /&gt;
- &amp;lt;code&amp;gt;()&amp;lt;/code&amp;gt;：数学中的小括号、中括号、大括号在 C++ 中统统用小括号&lt;br /&gt;
- 如果两个运算数都是整数，运算结果也会是整数（除法变成整除）&lt;br /&gt;
- 只要有一个运算数是小数（浮点数），运算结果就会得到小数&lt;br /&gt;
- 取余只能在整数间进行！不能除以 &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; 或对 &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; 取余！&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:基础语法]]&lt;br /&gt;
[[Category:三三文档]]&lt;/div&gt;</summary>
		<author><name>-&gt;Importer</name></author>
	</entry>
</feed>