Files
mixly3/boards/default_src/python_skulpt/origin/examples/07-1 鸡兔同笼.mix
2024-07-19 10:16:00 +08:00

1 line
6.5 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="variables_set" id="KMw/kvd$/Xl+Mh_^Uw2w" x="-490" y="24"><field name="VAR"></field><value name="VALUE"><block type="inout_type_input" id="DA:UJ+_f,6-M~]SSGD;]"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="K!C7Wa-IhDffISmFUZgI"><field name="TEXT">请输入头的总数:</field></shadow></value></block></value><next><block type="variables_set" id="M*2f|PEZF]2L89J,)LO~"><field name="VAR"></field><value name="VALUE"><block type="inout_type_input" id="]WGj$I,y#i3IYT,1C2fI"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="X;L-@mnFlDEGc4}MD@er"><field name="TEXT">请输入脚的总数:</field></shadow></value></block></value><next><block type="controls_forEach" id=")mrt!igS!XzYcrv:)gOP"><value name="LIST"><shadow type="list_many_input" id="AE=tB#V;Tv}UqVlvfU;("><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="xDb?*=n+2~^cG@]e3kZR"><value name="FROM"><shadow type="math_number" id="i*Jt1LQF=+dbKnM_0~TW"><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="[=MeCxG(?#.YUq6VJ:.A"><field name="NUM">5</field></shadow><block type="math_arithmetic" id="XFq#tQ`${g-WT$mTz}~T"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="`03@AEXVbHl,7~o#5HMs"><field name="NUM">1</field></shadow><block type="variables_get" id="|nhr4)Kx(-R{t@FQwsat"><field name="VAR"></field></block></value><value name="B"><shadow type="math_number" id="Ox)^.1Ft7^K4QM]Q|L5D"><field name="NUM">1</field></shadow></value></block></value><value name="STEP"><shadow type="math_number" id="#9J=8^{Zz;jCv?s!+?|_"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="Z#Ltm93F2}S{2B::#(hr"><field name="VAR"></field></shadow></value><statement name="DO"><block type="controls_if" id="5wVAq2Ec:#L23o!6}:U("><value name="IF0"><block type="logic_compare" id="{PlW1c1G.h,eZME3r]Ju"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="!|*}?WrVv57cJD^(Mghb" inline="false"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="J4:wcbR*|pOkrL.2/0$Q"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="So$}mx|N!g^W1o)jF$)I"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="_QW]wc(RZ)?n{F@+WjH{"><field name="NUM">1</field></shadow><block type="variables_get" id="h:$fYzyoI$0i3I0p#{cG"><field name="VAR"></field></block></value><value name="B"><shadow type="math_number" id="-y1wIadr_+3V?P~a;m}*"><field name="NUM">2</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="K5!60B;s+0Es@qbFbfj}"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="|R0gHF7X5YP`R`aMjQ|~"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="1?CYDW@8DUl4IS+9+MsM"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="E@l|W=^(1q~Kl5{.9t[i"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="U*8ur]I;$p`-o5rUC_st"><field name="NUM">1</field></shadow><block type="variables_get" id="b_^ZSIh(rm4ituLO36Mo"><field name="VAR"></field></block></value><value name="B"><shadow type="math_number" id="4YdDZ_AiJGg9!#yP8Vcf"><field name="NUM">1</field></shadow><block type="variables_get" id="v(eM1[:^.RP$FE5IKi?/"><field name="VAR"></field></block></value></block></value><value name="B"><shadow type="math_number" id="J38,F|Ci::z|RFwbI~zN"><field name="NUM">4</field></shadow></value></block></value></block></value><value name="B"><block type="variables_get" id="}QA4FY_CZ:|c-V5k$Xx="><field name="VAR"></field></block></value></block></value><statement name="DO0"><block type="inout_print" id="59:(`=)0)1I0HXZ1s^0Z"><value name="VAR"><shadow type="text" id="Wfkl^Je!IIOvxCc@)e${"><field name="TEXT">Hello</field></shadow><block type="text_join" id="I2Np*ol3@fOpV1yh;pbP"><value name="A"><shadow type="text" id="#_x)-9zmS7-)$g7;x+cM"><field name="TEXT">鸡:</field></shadow></value><value name="B"><shadow type="text" id="5s!O0L`M@0yCl?A7g3Xr"><field name="TEXT">Mixly</field></shadow><block type="text_join" id="bpjH-=k7QTK2_DI_v@^k"><value name="A"><shadow type="text" id="=:v#Ufy4a$Yxg]_L^N^_"><field name="TEXT">Hello</field></shadow><block type="variables_change" id="zHIjXxDuAjsI}]w[66DV"><field name="OP">str</field><value name="MYVALUE"><block type="variables_get" id="Z=79-xtif0(k40=Uw1Qd"><field name="VAR"></field></block></value></block></value><value name="B"><shadow type="text" id="U$_cjJ~o=832MHqgydw^"><field name="TEXT"></field></shadow></value></block></value></block></value><next><block type="inout_print" id="Vvl?i_Qsl7v{xY74I2!B"><value name="VAR"><shadow type="text" id="2|#)jbg{a|^nfm?8XbFm"><field name="TEXT">Hello</field></shadow><block type="text_join" id="$Z6:xlT5Er#Pua$$4rax"><value name="A"><shadow type="text" id="S:KB(~SFR45U*+08o$hC"><field name="TEXT">兔:</field></shadow></value><value name="B"><shadow type="text" id="*u0OBwY?siAM`7,-r{VO"><field name="TEXT">Mixly</field></shadow><block type="text_join" id="r!g7,]s#3xTt:oB9Y)4K"><value name="A"><shadow type="text" id=":O{/ue$Hv*~NMLK!gE7."><field name="TEXT">Hello</field></shadow><block type="variables_change" id="g^5JD@JvO}MoH]Iv`ZxP"><field name="OP">str</field><value name="MYVALUE"><block type="math_arithmetic" id="#i**O2~hCd`^yoeBi~xu"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="cJsX[#!6*?)lAOn`|c2O"><field name="NUM">1</field></shadow><block type="variables_get" id=",a{DC#8UG#v=Ipo*IHqj"><field name="VAR"></field></block></value><value name="B"><shadow type="math_number" id="}Pyrkh!}w/-7|/Nz64?/"><field name="NUM">1</field></shadow><block type="variables_get" id="[^papLf|vz{[pPtsn7:x"><field name="VAR"></field></block></value></block></value></block></value><value name="B"><shadow type="text" id="s!e)+iMcIsBXh(-(1pFo"><field name="TEXT"></field></shadow></value></block></value></block></value></block></next></block></statement></block></statement></block></next></block></next></block></xml><config>{}</config><code>X0U1X0E0X0I0ID0gaW50KGlucHV0KCfor7fovpPlhaXlpLTnmoTmgLvmlbDvvJonKSkKX0U4Xzg0XzlBID0gaW50KGlucHV0KCfor7fovpPlhaXohJrnmoTmgLvmlbDvvJonKSkKZm9yIF9FOV9COF9BMSBpbiByYW5nZSgwLCBfRTVfQTRfQjQgKyAxLCAxKToKICAgIGlmIF9FOV9COF9BMSAqIDIgKyAoX0U1X0E0X0I0IC0gX0U5X0I4X0ExKSAqIDQgPT0gX0U4Xzg0XzlBOgogICAgICAgIHByaW50KCgn6bih77yaJyArIChzdHIoX0U5X0I4X0ExKSArICflj6onKSkpCiAgICAgICAgcHJpbnQoKCflhZTvvJonICsgKHN0cigoX0U1X0E0X0I0IC0gX0U5X0I4X0ExKSkgKyAn5Y+qJykpKQo=</code>