Skip to content

Commit

Permalink
asdfsadf
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhiyong0410 committed Nov 23, 2020
1 parent 22d4910 commit d23e638
Show file tree
Hide file tree
Showing 38 changed files with 243 additions and 13 deletions.
Binary file modified build/doctrees/environment.pickle
Binary file not shown.
Binary file modified build/doctrees/reference-for-block/block.doctree
Binary file not shown.
Binary file modified build/doctrees/reference-for-block/math.doctree
Binary file not shown.
Binary file added build/html/_images/constrain.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/event.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/map.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/pai.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/random.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/randomfraction.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/remainder.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/round.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/sin.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/square.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/sum.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/yijiayi.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions build/html/_sources/reference-for-block/block.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Product
basic
logic
loops
math
52 changes: 50 additions & 2 deletions build/html/_sources/reference-for-block/math.md.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,57 @@
# math

## ![a](./img/math/ling.jpg)
- **effect:**
- **effect:** Usually a digital block for assignment, the parameter can be negative or decimals.
***

## ![a](./img/math/lingxling.jpg)
- **effect:**
- **effect:** Hexadecimal
***

## ![a](./img/math/map.jpg)
- **effect:** The two sets of data are mapped in equal proportions, which are commonly used to control analog value modules.
***

## ![a](./img/math/yijiayi.jpg)
- **effect:** Generally used for assignment after calculation
***

## ![a](./img/math/square.jpg)
- **effect:** Perform selected operations on parameters
***

## ![a](./img/math/sin.jpg)
- **effect:** Graph formula related operations
***

## ![a](./img/math/pai.jpg)
- **effect:** Needless to say
***

## ![a](./img/math/event.jpg)
- **effect:** Determine the type of the parameter and return a Boolean value
***

## ![a](./img/math/round.jpg)
- **effect:** Perform operations such as rounding parameters
***

## ![a](./img/math/sum.jpg)
- **effect:** Get the relevant attributes of the list
***

## ![a](./img/math/remainder.jpg)
- **effect:** Take the remainder
***

## ![a](./img/math/constrain.jpg)
- **effect:** Limit the range of numbers. If it is less than the range, it is assigned to parameter 2, and if it is greater than the range, it is assigned to parameter 3.
***

## ![a](./img/math/random.jpg)
- **effect:** Get a random integer in the specified interval
***

## ![a](./img/math/randomfraction.jpg)
- **effect:** Get random scores
***
1 change: 1 addition & 0 deletions build/html/reference-for-block/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<li class="toctree-l4 current"><a class="current reference internal" href="#">basic</a></li>
<li class="toctree-l4"><a class="reference internal" href="logic.html">logic</a></li>
<li class="toctree-l4"><a class="reference internal" href="loops.html">loops</a></li>
<li class="toctree-l4"><a class="reference internal" href="math.html">math</a></li>
</ul>
</li>
</ul>
Expand Down
2 changes: 2 additions & 0 deletions build/html/reference-for-block/block.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<li class="toctree-l4"><a class="reference internal" href="basic.html">basic</a></li>
<li class="toctree-l4"><a class="reference internal" href="logic.html">logic</a></li>
<li class="toctree-l4"><a class="reference internal" href="loops.html">loops</a></li>
<li class="toctree-l4"><a class="reference internal" href="math.html">math</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -171,6 +172,7 @@ <h2>Product<a class="headerlink" href="#product" title="Permalink to this headli
<li class="toctree-l1"><a class="reference internal" href="basic.html">basic</a></li>
<li class="toctree-l1"><a class="reference internal" href="logic.html">logic</a></li>
<li class="toctree-l1"><a class="reference internal" href="loops.html">loops</a></li>
<li class="toctree-l1"><a class="reference internal" href="math.html">math</a></li>
</ul>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions build/html/reference-for-block/logic.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<li class="toctree-l4"><a class="reference internal" href="basic.html">basic</a></li>
<li class="toctree-l4 current"><a class="current reference internal" href="#">logic</a></li>
<li class="toctree-l4"><a class="reference internal" href="loops.html">loops</a></li>
<li class="toctree-l4"><a class="reference internal" href="math.html">math</a></li>
</ul>
</li>
</ul>
Expand Down
4 changes: 4 additions & 0 deletions build/html/reference-for-block/loops.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="math" href="math.html" />
<link rel="prev" title="logic" href="logic.html" />
</head>

Expand Down Expand Up @@ -88,6 +89,7 @@
<li class="toctree-l4"><a class="reference internal" href="basic.html">basic</a></li>
<li class="toctree-l4"><a class="reference internal" href="logic.html">logic</a></li>
<li class="toctree-l4 current"><a class="current reference internal" href="#">loops</a></li>
<li class="toctree-l4"><a class="reference internal" href="math.html">math</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -263,6 +265,8 @@ <h2><img alt="a" src="../_images/breakcountinue.jpg" /><a class="headerlink" hre

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">

<a href="math.html" class="btn btn-neutral float-right" title="math" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>


<a href="logic.html" class="btn btn-neutral float-left" title="logic" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

Expand Down
126 changes: 118 additions & 8 deletions build/html/reference-for-block/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="prev" title="loops" href="loops.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -78,8 +79,22 @@



<ul>
<li class="toctree-l1"><a class="reference internal" href="../tutorial.html">Tutorial</a></li>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../tutorial.html">Tutorial</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../get-started-with-ezblock2.0/get-started-with-ezblock2.0.html">function Introduction</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference-for-python/ezblock.html">Reference for Python</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="block.html">Reference for Block</a><ul class="current">
<li class="toctree-l3 current"><a class="reference internal" href="block.html#product">Product</a><ul class="current">
<li class="toctree-l4"><a class="reference internal" href="basic.html">basic</a></li>
<li class="toctree-l4"><a class="reference internal" href="logic.html">logic</a></li>
<li class="toctree-l4"><a class="reference internal" href="loops.html">loops</a></li>
<li class="toctree-l4 current"><a class="current reference internal" href="#">math</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>


Expand Down Expand Up @@ -125,6 +140,10 @@

<li><a href="../index.html">Docs</a> &raquo;</li>

<li><a href="../tutorial.html">Tutorial</a> &raquo;</li>

<li><a href="block.html">Reference for Block</a> &raquo;</li>

<li>math</li>


Expand All @@ -148,17 +167,101 @@
<h1>math<a class="headerlink" href="#math" title="Permalink to this headline"></a></h1>
<div class="section" id="a">
<h2><img alt="a" src="../_images/ling.jpg" /><a class="headerlink" href="#a" title="Permalink to this headline"></a></h2>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>- **effect:**
</pre></div>
</div>
<ul class="simple">
<li><p><strong>effect:</strong> Usually a digital block for assignment, the parameter can be negative or decimals.</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id1">
<h2><img alt="a" src="../_images/lingxling.jpg" /><a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>- **effect:**
</pre></div>
<ul class="simple">
<li><p><strong>effect:</strong> Hexadecimal</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id2">
<h2><img alt="a" src="../_images/map.jpg" /><a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> The two sets of data are mapped in equal proportions, which are commonly used to control analog value modules.</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id3">
<h2><img alt="a" src="../_images/yijiayi.jpg" /><a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Generally used for assignment after calculation</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id4">
<h2><img alt="a" src="../_images/square.jpg" /><a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Perform selected operations on parameters</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id5">
<h2><img alt="a" src="../_images/sin.jpg" /><a class="headerlink" href="#id5" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Graph formula related operations</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id6">
<h2><img alt="a" src="../_images/pai.jpg" /><a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Needless to say</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id7">
<h2><img alt="a" src="../_images/event.jpg" /><a class="headerlink" href="#id7" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Determine the type of the parameter and return a Boolean value</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id8">
<h2><img alt="a" src="../_images/round.jpg" /><a class="headerlink" href="#id8" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Perform operations such as rounding parameters</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id9">
<h2><img alt="a" src="../_images/sum.jpg" /><a class="headerlink" href="#id9" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Get the relevant attributes of the list</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id10">
<h2><img alt="a" src="../_images/remainder.jpg" /><a class="headerlink" href="#id10" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Take the remainder</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id11">
<h2><img alt="a" src="../_images/constrain.jpg" /><a class="headerlink" href="#id11" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Limit the range of numbers. If it is less than the range, it is assigned to parameter 2, and if it is greater than the range, it is assigned to parameter 3.</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id12">
<h2><img alt="a" src="../_images/random.jpg" /><a class="headerlink" href="#id12" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Get a random integer in the specified interval</p></li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="id13">
<h2><img alt="a" src="../_images/randomfraction.jpg" /><a class="headerlink" href="#id13" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><p><strong>effect:</strong> Get random scores</p></li>
</ul>
<hr class="docutils" />
</div>
</div>

Expand All @@ -168,6 +271,13 @@ <h2><img alt="a" src="../_images/lingxling.jpg" /><a class="headerlink" href="#i
</div>
<footer>

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">


<a href="loops.html" class="btn btn-neutral float-left" title="loops" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

</div>


<hr/>

Expand Down
2 changes: 1 addition & 1 deletion build/html/searchindex.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions source/reference-for-block/block.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Product
basic
logic
loops
math
Binary file added source/reference-for-block/img/math/constrain.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/event.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/map.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/pai.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/random.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/remainder.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/round.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/sin.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/square.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/sum.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/reference-for-block/img/math/yijiayi.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 50 additions & 2 deletions source/reference-for-block/math.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,57 @@
# math

## ![a](./img/math/ling.jpg)
- **effect:**
- **effect:** Usually a digital block for assignment, the parameter can be negative or decimals.
***

## ![a](./img/math/lingxling.jpg)
- **effect:**
- **effect:** Hexadecimal
***

## ![a](./img/math/map.jpg)
- **effect:** The two sets of data are mapped in equal proportions, which are commonly used to control analog value modules.
***

## ![a](./img/math/yijiayi.jpg)
- **effect:** Generally used for assignment after calculation
***

## ![a](./img/math/square.jpg)
- **effect:** Perform selected operations on parameters
***

## ![a](./img/math/sin.jpg)
- **effect:** Graph formula related operations
***

## ![a](./img/math/pai.jpg)
- **effect:** Needless to say
***

## ![a](./img/math/event.jpg)
- **effect:** Determine the type of the parameter and return a Boolean value
***

## ![a](./img/math/round.jpg)
- **effect:** Perform operations such as rounding parameters
***

## ![a](./img/math/sum.jpg)
- **effect:** Get the relevant attributes of the list
***

## ![a](./img/math/remainder.jpg)
- **effect:** Take the remainder
***

## ![a](./img/math/constrain.jpg)
- **effect:** Limit the range of numbers. If it is less than the range, it is assigned to parameter 2, and if it is greater than the range, it is assigned to parameter 3.
***

## ![a](./img/math/random.jpg)
- **effect:** Get a random integer in the specified interval
***

## ![a](./img/math/randomfraction.jpg)
- **effect:** Get random scores
***
14 changes: 14 additions & 0 deletions source/reference-for-block/test.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- function_test2.lua 脚本文件
function testFun(tab,fun)
for k ,v in pairs(tab) do
print(fun(k,v));
end
end


tab={key1="val1",key2="val2"};
testFun(tab,
function(key,val)--匿名函数
return key.."="..val;
end
);

0 comments on commit d23e638

Please sign in to comment.