110 lines
8.6 KiB
Plaintext
110 lines
8.6 KiB
Plaintext
|
|
<mxfile host="65bd71144e">
|
||
|
|
<diagram id="c8kls0yAax6bhxLxDwx2" name="第 1 页">
|
||
|
|
<mxGraphModel dx="1134" dy="1642" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
|
|
<root>
|
||
|
|
<mxCell id="0"/>
|
||
|
|
<mxCell id="1" parent="0"/>
|
||
|
|
<mxCell id="14" style="edgeStyle=orthogonalEdgeStyle;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="2" target="13">
|
||
|
|
<mxGeometry relative="1" as="geometry">
|
||
|
|
<Array as="points">
|
||
|
|
<mxPoint x="60" y="-1030"/>
|
||
|
|
<mxPoint x="60" y="-770"/>
|
||
|
|
</Array>
|
||
|
|
</mxGeometry>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="15" value="切:&nbsp; s2 := s1[1:3]&nbsp;&nbsp;<div><div style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34); font-family: &quot;Cascadia Code NF&quot;, Menlo, Monaco, &quot;Courier New&quot;, monospace, Menlo, Monaco, &quot;Courier New&quot;, monospace; font-size: 12px; line-height: 18px; white-space-collapse: preserve;"><span style="color: rgb(136, 132, 111);"> [start: end)</span></div></div>" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="14">
|
||
|
|
<mxGeometry x="-0.0897" y="-2" relative="1" as="geometry">
|
||
|
|
<mxPoint as="offset"/>
|
||
|
|
</mxGeometry>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="2" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="-1070" width="370" height="80" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="3" value="s1: []int{1,2,3}" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="-1100" width="110" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="4" value="arry ptr" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="250" y="-1045" width="90" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="5" value="len(3)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="360" y="-1045" width="90" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="6" value="cap(3)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="480" y="-1045" width="90" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="7" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="-930" width="370" height="60" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="8" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.203;entryY=0.017;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="4" target="7">
|
||
|
|
<mxGeometry relative="1" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="9" value="1" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="250" y="-920" width="80" height="40" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="10" value="2" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="360" y="-920" width="80" height="40" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="11" value="3" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="464" y="-920" width="80" height="40" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="12" value="arr1: [3]int" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="-960" width="60" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="21" style="edgeStyle=none;html=1;exitX=0.25;exitY=0;exitDx=0;exitDy=0;entryX=0.25;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="13" target="7">
|
||
|
|
<mxGeometry relative="1" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="13" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="-810" width="370" height="80" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="18" value="len(2)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="369" y="-790" width="90" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="19" value="cap(3)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="480" y="-790" width="90" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="20" value="arry ptr" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="250" y="-790" width="90" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="22" value="无法访问 除切割之外的数据" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="40" y="-760" width="150" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="23" value="补充了offset: 1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="440" y="-840" width="130" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="25" value="Actor" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="130" y="-690" width="30" height="60" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="30" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="26" target="27">
|
||
|
|
<mxGeometry relative="1" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="26" value="s2[0]&nbsp;" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="220" y="-675" width="60" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="31" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="27" target="28">
|
||
|
|
<mxGeometry relative="1" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="27" value="arr1" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="320" y="-675" width="60" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="32" style="edgeStyle=none;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="28" target="29">
|
||
|
|
<mxGeometry relative="1" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="28" value="arr1[0 + 1]" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="440" y="-675" width="60" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="33" style="edgeStyle=orthogonalEdgeStyle;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.75;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="29" target="10">
|
||
|
|
<mxGeometry relative="1" as="geometry">
|
||
|
|
<Array as="points">
|
||
|
|
<mxPoint x="700" y="-660"/>
|
||
|
|
<mxPoint x="700" y="-980"/>
|
||
|
|
<mxPoint x="420" y="-980"/>
|
||
|
|
</Array>
|
||
|
|
</mxGeometry>
|
||
|
|
</mxCell>
|
||
|
|
<mxCell id="29" value="arr1[1]" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||
|
|
<mxGeometry x="544" y="-675" width="60" height="30" as="geometry"/>
|
||
|
|
</mxCell>
|
||
|
|
</root>
|
||
|
|
</mxGraphModel>
|
||
|
|
</diagram>
|
||
|
|
</mxfile>
|