deyuanw 2 years ago
commit c23a00968d

@ -372,7 +372,7 @@ Step 3查询最后一个学生结束
Step 4if未查询到提示学生不存在 Step 4if未查询到提示学生不存在
Step 5else打印学生信息 Step 5else打印学生信息
![查询流程图](images/query_data.drawio.svg) ![查询流程图](https://code.educoder.net/repo/p8rq79j4h/test1/raw/branch/master/picture.drawio.svg)
### printf_data ### printf_data

@ -1,44 +1,125 @@
<svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="191px" height="281px" viewBox="-0.5 -0.5 191 281" content="&lt;mxfile&gt;&lt;diagram id=&quot;kB65XBdy5rx5M8v67JT7&quot; name=&quot;Page-1&quot;&gt;5ZXBbqMwEIafhjvgkDTHTdptL61WymG1RxdPwVrDIGNC0qdfO54EXJKqlSJ1pV4S+/fMeObz2ERsXe3uNW/KRxSgojQWu4jdRmk6Z8z+OmHvBZYtvVBoKbyUDMJGvgKJMamdFNAGhgZRGdmEYo51DbkJNK419qHZC6pw14YXMBE2OVdT9bcUpvTqTboY9AeQRXncOZlTfRU/GlMlbckF9iOJ3UVsrRGNH1W7NSjH7sjF+/28sHpKTENtPuJAB9Ga/bE2ELZUmtZY279VaSplZ4kdTuPTli12OqcQqZdcpJENJXAPWIHRe2ugQXEjtyFUTmdTnOxOrr9Q2l3TmNooYZl3oS5KszgMYbguwJDXAMEORmkM0gHNeUxU0ZarjrKdcNPY1QKcfWw59aU0sGn4AUlvL8EHMW5BG9i9S41WZ3FQPKNpP/RjsiStHPdiHF/mHBB6B8dsguPPhIctw4RFcyWL2o5zWzRoK7hipb1VP2ihkkI495WGVr7y50MoR7NxR3jIN1tF2a2L1Rls/bvgQrdG419Yo0I9tO2LVOqNdAXuySzsumSRTcizM+DZFbhnE+5P34b74uuwz/+/27+48PSNr396Bsf88zjsdPge+bdz+Kizu38=&lt;/diagram&gt;&lt;/mxfile&gt;"> <svg host="65bd71144e" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="411px" height="542px" viewBox="-0.5 -0.5 411 542" content="&lt;mxfile&gt;&lt;diagram id=&quot;kB65XBdy5rx5M8v67JT7&quot; name=&quot;Page-1&quot;&gt;5Vhbk5s2FP41mkkevMPFYHg0xk76sJ3OeDtNnzIyyKAuIFaItb2/vkdIYDBs6qTONpm+rMW56PKdo/MdLbJX+fEDx2V6z2KSIcuIj8gOkWW5tg1/peCkBKZjeUqScBpr2VmwpS9ECw0trWlMqoGhYCwTtBwKI1YUJBIDGeacHYZme5YNVy1xQkaCbYSzsfQPGotUST1rcZZ/JDRJ25VN11eaHLfG+iRVimN26InsNbJXnDGhRvlxRTIJXouL8tu8ou02xkkhrnHQuD/jrNZnQ5aLLBuQtgMYZjBLkNpyp+Kkj+8+1XJ7wY4dZxV9oUWC7CVY7BiPCZ+BuPGFw/KEFkpnkhz+GuVRjt1SW5Q4jjt3o5VGLGNcyXiyw+/gBCupH/7cec57Zb9nhZgdNN7Sa2EYen5WUUGZ3gMnGRb0mShdRgsyS3te5t3c7k1YNVmnFA7s/qzZ45xmJ6UDNHBeglJjck8jziq2F6D7E0MSXBqo3X8k2TMRNMLqczQLofzEQPH7L9P+IwecJXUBig9MpDS6zmlLEka+YpEHTnZ1lBJ5tvvttM89K3DE1DhnBatKHBH1+YBTlusDbx8+0VSC06yzdpAXIm+N1i7yXeQt0HqBggB5Llr7cuCbrRsgKuj09nqYGr8SSOerDhVyBncBpsZFdZ3HgRRPNS5OVB5Rhht+09cCveGEqKnl15LTnHVDnOlT0Xwrg9disVwjL0DrOQpC5NttwpzP3WEyNKlgmVlFON33s1jdWpmqBeM5LHnWPWPYA/xmNMGi5rKgftEuwuWESUaEgFsvA91d5b6e8TKVADQKS8kEOYoZhnX1zfyrrgTdn3pKWsRNBRsUhkYjOMy2hwXapQp9oQ80bgp7b50DVKThzrq5oGDsHilMJ+esBGePZHZQtXxgt8PRY8JZXcSzYV16ZzmOAr4/eN/baUwixrGsPzN5KR8LUunt0QKi2QJ0adsL2Rftetvp27ld/rVFvpU81YSfPsdY4L6Vm4x0mdJsZN1X6iEpnIfWgBgs4BagYBmPQ0oF2TaX3w4P0AVIGhE5bDE0O89nwuFQrzKX2fEhNBKE5UTwE5i0DramUN1EzOy5FhzOlGy2PJv26NjTMqy7gKSb+0yUMNBcOc2b/gRvXoAhCQaOqnKrbRNkYsaUQ1PS0FJYsVrKb42N5wyxsdwJbCag6fD6N9iY1ggcuK/SAD6MpleTF7fOP8OJRDUCjgNP7OrqTbLoEijTGwP1HZGyf640msoiZwIb9xbYzL8Rm/kQhxIYERYnUCpDWcx3QBi/nWVByWghmn06AXJCkACWcuJV93gwbgOn5V9ULNNyRnj6U7l2CzidMZyy1wjR0pXtlj9H/qbpKDZoacpOzDPRUkk82Z4pY9+TA3+Flt4oGvCWKeUQeEqmJ6t3jUYGoSFQEmss34IcrLth7prGG7KDOaYH6Mpk6+ZKlJcOWnsS3GUTA89DgTFCUygYe7johimMAIQmdSVE0O9mS63IaRxL9wB6OfqCFfzGZI7jWjD1wmmmVjdopTqKUPdUe5plF6JbhMa/KCr2ODCLibjYN4hLG+9eXEgG/cr/BXvbuqQ7Z1yBnO8FvjlRgaDM+PIFo56AgXFVTfqBC4/tXdb4ia7Un+BM5xYIjxuvn50ynSGcpj3O167buDVlWhOU+V++eOzFBaWZb0hp8tX3zbn1D63qj5Nvc+uyb5j5V76c/K8HGT7P/+ltdL3/l9vrvwE=&lt;/diagram&gt;&lt;/mxfile&gt;">
<defs/> <defs/>
<g> <g>
<path d="M 95 100 L 95 213.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/> <ellipse cx="105" cy="51" rx="60" ry="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 95 218.88 L 91.5 211.88 L 95 213.63 L 98.5 211.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<rect x="0" y="0" width="190" height="100" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<rect x="105" y="145" width="30" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 160px; margin-left: 120px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 51px; margin-left: 46px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
<br/>
<h3 id="query_data" style="box-sizing: border-box; margin: 1em 0px 16px; padding: 0px; color: rgba(0, 0, 0, 0.85); font-weight: 700; position: relative; line-height: 1.43; font-size: 1.5em; font-family: &quot;Microsoft YaHei&quot;, Helvetica, &quot;Meiryo UI&quot;, &quot;Malgun Gothic&quot;, &quot;Segoe UI&quot;, &quot;Trebuchet MS&quot;, Monaco, monospace, Tahoma, STXihei, 华文细黑, STHeiti, &quot;Helvetica Neue&quot;, &quot;Droid Sans&quot;, &quot;wenquanyi micro hei&quot;, FreeSans, Arimo, Arial, SimSun, 宋体, Heiti, 黑体, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
query_data
</h3>
<div>
<br/>
</div>
<div>
<br/>
</div>
</div>
</div>
</div>
</foreignObject>
<text x="105" y="55" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
query_data...
</text>
</switch>
</g>
<path d="M 45 151 L 165 151" fill="none" stroke="rgb(0, 0, 0)" stroke-width="2" stroke-miterlimit="10" transform="rotate(90,105,151)" pointer-events="all"/>
<path d="M 105 171 L 210 231 L 105 291 L 0 231 Z" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 208px; height: 1px; padding-top: 231px; margin-left: 1px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
for i=0 to num_parts
</div>
</div>
</div>
</foreignObject>
<text x="105" y="235" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
for i=0 to num_parts
</text>
</switch>
</g>
<path d="M 27.5 371 L 187.5 371" fill="none" stroke="rgb(0, 0, 0)" stroke-width="2" stroke-miterlimit="10" transform="rotate(90,107.5,371)" pointer-events="all"/>
<path d="M 205 231 L 295 231" fill="none" stroke="rgb(0, 0, 0)" stroke-width="4" stroke-miterlimit="10" pointer-events="all"/>
<rect x="47.5" y="451" width="120" height="80" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<rect x="49.5" y="453" width="116" height="76" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 114px; height: 1px; padding-top: 491px; margin-left: 51px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
学生信息不存在
</div>
</div>
</div>
</foreignObject>
<text x="108" y="495" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
学生信息不存在
</text>
</switch>
</g>
<rect x="110" y="321" width="70" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 336px; margin-left: 145px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
Y if 查询到
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="120" y="164" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="145" y="340" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
Y if 查询到
</text> </text>
</switch> </switch>
</g> </g>
<rect x="35" y="145" width="30" height="30" fill="none" stroke="none" pointer-events="all"/> <rect x="240" y="196" width="50" height="30" fill="none" stroke="none" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)"> <g transform="translate(-0.5 -0.5)">
<switch> <switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"> <foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 160px; margin-left: 50px;"> <div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 211px; margin-left: 265px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"> <div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;"> <div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: nowrap;">
N else
</div>
</div>
</div>
</foreignObject>
<text x="265" y="215" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
else
</text>
</switch>
</g>
<rect x="295" y="211" width="95" height="50" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<rect x="297" y="213" width="91" height="46" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<g transform="translate(-0.5 -0.5)">
<switch>
<foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;">
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 89px; height: 1px; padding-top: 236px; margin-left: 298px;">
<div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">
打印学生信息
</div> </div>
</div> </div>
</div> </div>
</foreignObject> </foreignObject>
<text x="50" y="164" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle"> <text x="343" y="240" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">
N 打印学生信息
</text> </text>
</switch> </switch>
</g> </g>
<rect x="35" y="220" width="120" height="60" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/> <path d="M 165 491 L 325 491" fill="none" stroke="rgb(0, 0, 0)" stroke-width="4" stroke-miterlimit="10" pointer-events="all"/>
<ellipse cx="350" cy="501" rx="60" ry="40" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/>
<path d="M 247.5 356 L 437.5 356" fill="none" stroke="rgb(0, 0, 0)" stroke-width="4" stroke-miterlimit="10" transform="rotate(90,342.5,356)" pointer-events="all"/>
</g> </g>
<switch> <switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/> <g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/>

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Loading…
Cancel
Save