Files
mixly3/boards/default/python_pyodide/examples/大同出版社-五年级/下册/第2课选择排序(未要求代码).mix

1 line
9.2 KiB
XML

<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="s@DRGECBCasy,UcP{}Rs" x="-386" y="-300"><field name="VAR">data</field><value name="VALUE"><block type="list_many_input" id="i@o^Y2uUH!bsVMhT}NI["><field name="CONTENT">64,25,12,22,11,90,88,77,55,33</field></block></value><next><block type="variables_set" id="2zyy#8i}owj6BFEt.hky"><field name="VAR">n</field><value name="VALUE"><block type="list_trig" id="u{5@NIBc427ZcKIb^i~H"><field name="OP">LEN</field><value name="data"><shadow type="variables_get" id="T.G#`v!u1L,Aq5CSe{A@"><field name="VAR">mylist</field></shadow><block type="variables_get" id="2{qfo{kXK.re!,8e__f3"><field name="VAR">data</field></block></value></block></value><next><block type="variables_set" id="pqDa#;2qc@6/rzA^JWUq"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="mg-F5im?7I*J9Cz(KYlj"><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="3451.{6LFRl4@cuu5hHH"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=":V/3Qsh7v1+$Lvu#FTlP"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="H-dX3y7-[7:DZOdiugX}"><field name="OP">LT</field><value name="A"><block type="variables_get" id="2S)TYDwWJqE$dJElNx4:"><field name="VAR">i</field></block></value><value name="B"><block type="math_arithmetic" id="CbV9:nAY$6G9Pw}VcyJn"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="m]65KKN{rl,ni3B6ZCZV"><field name="NUM">1</field></shadow><block type="variables_get" id="(j?-CWj{^~{^F=ASIFmf"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="L6Jlot6_VO+X5@]-]e;_"><field name="NUM">1</field></shadow></value></block></value></block></value><statement name="DO"><block type="variables_set" id="r]KwRz~Iw/a{16wvzL$F"><field name="VAR">max</field><value name="VALUE"><block type="variables_get" id="f/2zLh#(XNqx[K0+urk*"><field name="VAR">i</field></block></value><next><block type="variables_set" id="H(n?t(X(`Vat=;Hqcil+"><field name="VAR">j</field><value name="VALUE"><block type="math_arithmetic" id="|M@JOTYbBv9:R9u6rGCf"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="7]8TIZG5#5msu/3=.#E("><field name="NUM">1</field></shadow><block type="variables_get" id="2lg`.9kmlTeQN{c-#yT_"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="Q5d_x{/!^]Cbu_k1h#T,"><field name="NUM">1</field></shadow></value></block></value><next><block type="controls_whileUntil" id="37V[!n2s2MI?JVbq6Bn7"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="qEHG-Dh_`Fs9k^*vHv.e"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="a}~|tQym1/Qfa_w1;5Na"><field name="OP">LT</field><value name="A"><block type="variables_get" id="p{B:fhUK/G;BqPthN,O8"><field name="VAR">j</field></block></value><value name="B"><block type="variables_get" id="!/=S~^cLnUiK,+LtLdw!"><field name="VAR">n</field></block></value></block></value><statement name="DO"><block type="controls_if" id="FM:jd14J/Z=ub`hqua6a"><value name="IF0"><block type="logic_compare" id="!kD=JlhG8j7d(hPyOb;i"><field name="OP">GT</field><value name="A"><block type="lists_get_index" id="hz19:7K)Vgx{;:X8D5@6"><value name="LIST"><shadow type="variables_get" id="eL,}sF+wsw]ypf63sWbi"><field name="VAR">mylist</field></shadow><block type="variables_get" id="l,bttIAfKWAy.d0x}c)r"><field name="VAR">data</field></block></value><value name="AT"><shadow type="math_number" id="h*L2`h{,R3DlK9QQ#W:K"><field name="NUM">0</field></shadow><block type="variables_get" id="JbNm+1rzL;}q=8Dr2PG-"><field name="VAR">j</field></block></value></block></value><value name="B"><block type="lists_get_index" id=")!^e1q+qBkVsXB=a^vg("><value name="LIST"><shadow type="variables_get" id="`W:rg.ON9molgKvCiUZ@"><field name="VAR">mylist</field></shadow><block type="variables_get" id="/dS+D]|?soS-?E]=Ij?y"><field name="VAR">data</field></block></value><value name="AT"><shadow type="math_number" id="`FT3=:@OYkM4uB4#^Y0U"><field name="NUM">0</field></shadow><block type="variables_get" id="]x4D8VxIG-smS{|#m-Z#"><field name="VAR">max</field></block></value></block></value></block></value><statement name="DO0"><block type="variables_set" id="w7Sd;0rww2TH!|DFC8L0"><field name="VAR">max</field><value name="VALUE"><block type="variables_get" id="I|;Ws^XSmSXgZ{z#p*D0"><field name="VAR">j</field></block></value></block></statement><next><block type="variables_set" id="jMPg!0D36`cM#SAOPVs_"><field name="VAR">j</field><value name="VALUE"><block type="math_arithmetic" id="hn07zVfsqMC8LJ|jvA4="><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="OcQ}0csiSr|rxp0Yjy4_"><field name="NUM">1</field></shadow><block type="variables_get" id="p9c$^@Z7qgwl,ivQN2?Z"><field name="VAR">j</field></block></value><value name="B"><shadow type="math_number" id="qFgyIx]0.GaZjFRj0Dt+"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="controls_if" id="L@v{{d_$6X9`*~TH{n`|"><value name="IF0"><block type="logic_compare" id="Zfb7nXO]Q}9@;mbCwZJw"><field name="OP">NEQ</field><value name="A"><block type="variables_get" id="(y5mq.PGP=*mJF#R*N,7"><field name="VAR">max</field></block></value><value name="B"><block type="variables_get" id="vvV^H?txK!s7JLu{Mp(F"><field name="VAR">i</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="Xy29KGFBE;r~jvF-=^co"><field name="VAR">a</field><value name="VALUE"><block type="lists_get_index" id="Ve$j#|@CPT(n_9ZOgTK["><value name="LIST"><shadow type="variables_get" id="OSP[x8z/(6J`K5va|vn@"><field name="VAR">mylist</field></shadow><block type="variables_get" id="ru?;HgFVOXZQ(;.Q~3WG"><field name="VAR">data</field></block></value><value name="AT"><shadow type="math_number" id="I#WLAkLRj-6M?glT`8kQ"><field name="NUM">0</field></shadow><block type="variables_get" id="b~dVJA4,C+vP.4l6pQ4`"><field name="VAR">max</field></block></value></block></value><next><block type="lists_set_index" id="mBk4r/q1gG^8=2@Gm$Ct"><value name="LIST"><shadow type="variables_get" id="rafCW*!yBZhjnA,X7dkA"><field name="VAR">mylist</field></shadow><block type="variables_get" id="N_Kfs13m,Xa0hbrb2eW)"><field name="VAR">data</field></block></value><value name="AT"><shadow type="math_number" id="q{m4fJ^]?GfXc@+g!0|d"><field name="NUM">0</field></shadow><block type="variables_get" id="RDARMnE~[;(;CImHiCYf"><field name="VAR">max</field></block></value><value name="TO"><shadow type="math_number" id="Zv4jog!f94$!~8HQWN0-"><field name="NUM">0</field></shadow><block type="lists_get_index" id="?bDnU,B|sN@}j*k,=T`d"><value name="LIST"><shadow type="variables_get" id="0N7.P+*;2my[ymkm;9.`"><field name="VAR">mylist</field></shadow><block type="variables_get" id="l0oPm+b8pwkj2LNE{x?S"><field name="VAR">data</field></block></value><value name="AT"><shadow type="math_number" id="Okj#!3?5j=D$+cGC+Fqq"><field name="NUM">0</field></shadow><block type="variables_get" id="hZLx0nUy4GIHD_T^*K)4"><field name="VAR">i</field></block></value></block></value><next><block type="lists_set_index" id="({;SDlnVlt0]9,`#a+PH"><value name="LIST"><shadow type="variables_get" id="y{mApgm(y2Qb$bIJnK^#"><field name="VAR">mylist</field></shadow><block type="variables_get" id=")/lPcyScfD)6Ap6dX#*z"><field name="VAR">data</field></block></value><value name="AT"><shadow type="math_number" id="CDNTT4)x4W,i,`!;@nEm"><field name="NUM">0</field></shadow><block type="variables_get" id="7(m=H(6oAB1Cy|3`W0Yl"><field name="VAR">i</field></block></value><value name="TO"><shadow type="math_number" id="}G2[:kPXhZii-H=qY~#~"><field name="NUM">0</field></shadow><block type="variables_get" id="Lw~d_XpQo*H`SNvp~yd?"><field name="VAR">a</field></block></value></block></next></block></next></block></statement><next><block type="variables_set" id="(0{AJ]+gs0k$jcKKmr|!"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id="+c!lUXwo_]t=czzSjg0|"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="SE=JWo9[]5ARh)mcch:f"><field name="NUM">1</field></shadow><block type="variables_get" id="c]D+eYPz5D+q]sI6-#SZ"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="sxy*Y[QE9hJ_^#mGg]Di"><field name="NUM">1</field></shadow></value></block></value></block></next></block></next></block></next></block></next></block></statement><next><block type="inout_print_many" id="O@uEJkmj@PzM=bg[q=[P"><mutation items="2"></mutation><value name="ADD0"><block type="text" id=":F1o/cysc.ZDEb{_}j)="><field name="TEXT">排序后的数:</field></block></value><value name="ADD1"><block type="variables_get" id="l#4r2S79*Vn;!esU:4=q"><field name="VAR">data</field></block></value></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IG1hdGgKCgpkYXRhID0gWzY0LDI1LDEyLDIyLDExLDkwLDg4LDc3LDU1LDMzXQpuID0gbGVuKGRhdGEpCmkgPSAwCndoaWxlIGkgPCBuIC0gMToKICAgIG1heDIgPSBpCiAgICBqID0gaSArIDEKICAgIHdoaWxlIGogPCBuOgogICAgICAgIGlmIGRhdGFbal0gPiBkYXRhW21heDJdOgogICAgICAgICAgICBtYXgyID0gagogICAgICAgIGogPSBqICsgMQogICAgaWYgbWF4MiAhPSBpOgogICAgICAgIGEgPSBkYXRhW21heDJdCiAgICAgICAgZGF0YVttYXgyXSA9IGRhdGFbaV0KICAgICAgICBkYXRhW2ldID0gYQogICAgaSA9IGkgKyAxCnByaW50KCfmjpLluo/lkI7nmoTmlbDvvJonLCBkYXRhKQo=</code>