1 line
6.5 KiB
XML
1 line
6.5 KiB
XML
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="variables_set" id=":6T5S*mu7hvsK2gn^DT|" x="-1370" y="-262"><field name="VAR">target</field><value name="VALUE"><block type="math_random" id="lo]tQ,e*OKVxA9Z#9it@"><field name="TYPE">int</field><value name="FROM"><shadow type="math_number" id="2`!!]79HrXNofRUhpguY"><field name="NUM">1</field></shadow></value><value name="TO"><shadow type="math_number" id="}zlK8^yNho)F!I6tT@)w"><field name="NUM">100</field></shadow></value></block></value><next><block type="variables_set" id="#CIJJ_kU_?/nRsvSo$:["><field name="VAR">count</field><value name="VALUE"><block type="math_number" id="DEcxR!e-,f^^eVl={[WC"><field name="NUM">0</field></block></value><next><block type="variables_set" id="uG(.)z=S|l6;9TLlR.z3"><field name="VAR">n</field><value name="VALUE"><block type="logic_null" id="X`iNj*MCNp|;/sMAmeIR"></block></value><next><block type="controls_whileUntil" id="aM+5K9jB4eW:A[*IC=vr"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="+LGR1_~}u,ayM7m$;rbx"><field name="BOOL">TRUE</field></shadow><block type="logic_operation" id="1bqx;?+?|k2##8f~|7$:"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="Q.20*lE5?PSG7WIRR`T="><field name="OP">NEQ</field><value name="A"><block type="variables_get" id="{QxF1Iv8HV(NHyldxW._"><field name="VAR">target</field></block></value><value name="B"><block type="variables_get" id="9UT;@^mH$2?T?/U.6tb/"><field name="VAR">n</field></block></value></block></value><value name="B"><block type="logic_compare" id="ELU;SQcOsEF0Aeu|h7fo"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="EWxtAfWdjCi/}K:*7_J)"><field name="VAR">count</field></block></value><value name="B"><block type="math_number" id=",7e(Gxh|jV:5s,SAgjki"><field name="NUM">5</field></block></value></block></value></block></value><statement name="DO"><block type="variables_set" id="wf@.|+S$,$5BQ70YE5y:"><field name="VAR">n</field><value name="VALUE"><block type="inout_type_input" id="JXhvH+Dy/{B{+`thU6X3"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="*LJIk}a1]ikjxAzDD{+^"><field name="TEXT">输入数字:</field></shadow></value></block></value><next><block type="variables_set" id="*_aI/gREfB.R9Y_Bsin("><field name="VAR">count</field><value name="VALUE"><block type="math_arithmetic" id="Q3OkBD|7MBDbinP1yV(5"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="-20!odiUCQQdEQ-[ere#"><field name="NUM">1</field></shadow><block type="variables_get" id="_rO=p;x7}+50`iBc$/FL"><field name="VAR">count</field></block></value><value name="B"><shadow type="math_number" id="m,o/g}GP;F:E}Iy^o8|o"><field name="NUM">1</field></shadow></value></block></value><next><block type="controls_if" id="$zhV.!V7y`P2sFhqJxCQ"><mutation elseif="1" else="1"></mutation><value name="IF0"><block type="logic_compare" id="92NcS+}ugNALArn~0PzZ"><field name="OP">GT</field><value name="A"><block type="variables_get" id="PKt*kNm}t(,BmIX?6.Mo"><field name="VAR">n</field></block></value><value name="B"><block type="variables_get" id="pYca[C.jY?0`ON[;Z22R"><field name="VAR">target</field></block></value></block></value><statement name="DO0"><block type="inout_print" id="BY[10}9W5i8NvbwK*(=0"><value name="VAR"><shadow type="text" id="rxy:XvIWKQx@Bt$/,A,z"><field name="TEXT">太大了!</field></shadow></value></block></statement><value name="IF1"><block type="logic_compare" id="trf9ewn77M~vl03#aM_M"><field name="OP">LT</field><value name="A"><block type="variables_get" id="r0##xx|$YM;w_xvo0E[n"><field name="VAR">n</field></block></value><value name="B"><block type="variables_get" id="N7dP?-Q:+tJeN.?Ii0B3"><field name="VAR">target</field></block></value></block></value><statement name="DO1"><block type="inout_print" id="#CpEs[v-?A#oEiff4Bv["><value name="VAR"><shadow type="text" id="`fdcBasq3+]L)aU14Ydg"><field name="TEXT">太小了!</field></shadow></value></block></statement><statement name="ELSE"><block type="inout_print" id=".BaUV$ds{vTPQo5F*FHG"><value name="VAR"><shadow type="text" id="^sD*3@2u1mWdI9[Rvf+]"><field name="TEXT">猜对了!</field></shadow></value></block></statement></block></next></block></next></block></statement><next><block type="controls_if" id="zV0uVc7f*[.5U1O`_?b{"><value name="IF0"><block type="logic_operation" id="{Lj;RE5z-rgZntnpeJDJ"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="DvR]7k1#0F71Ltg=^-RO"><field name="OP">NEQ</field><value name="A"><block type="variables_get" id="VuyN[f]NPjs,j.kdsmR5"><field name="VAR">target</field></block></value><value name="B"><block type="variables_get" id="p7n5Q]h]3;],@(?9yN73"><field name="VAR">n</field></block></value></block></value><value name="B"><block type="logic_compare" id="MUe8+R8?J~ZLQ|BuP-^V"><field name="OP">GT</field><value name="A"><block type="variables_get" id="gf.I+7Ex#bQM[Pyh89zU"><field name="VAR">count</field></block></value><value name="B"><block type="math_number" id="N!DzxzVuW5REe37mmMkB"><field name="NUM">5</field></block></value></block></value></block></value><statement name="DO0"><block type="inout_print" id="Z@KPV*FsI+q]u7FqcfZW"><value name="VAR"><shadow type="text" id="tFKWC]wVA*KfF^K29@4j"><field name="TEXT">Hello</field></shadow><block type="text_join" id="r0nU^9X4Kw1{`j.xIvZm"><value name="A"><shadow type="text" id="V#j2E||Zg28q:tv`|$gB"><field name="TEXT">目标数字:</field></shadow></value><value name="B"><shadow type="text" id="xH]2r.:epv21}693NbY["><field name="TEXT">Mixly</field></shadow><block type="variables_change" id="S6iF|GQa!G!_OO_1qNj^"><field name="OP">str</field><value name="MYVALUE"><block type="variables_get" id="Zz[.xXInCJdJCw)E:A4u"><field name="VAR">target</field></block></value></block></value></block></value><next><block type="inout_print" id="(JY!+D|1g_+]{5T2zBh2"><value name="VAR"><shadow type="text" id="RyRp5ouK9y2uS()$:buR"><field name="TEXT">游戏结束!</field></shadow></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHJhbmRvbQoKCnRhcmdldCA9IHJhbmRvbS5yYW5kaW50KDEsIDEwMCkKY291bnQgPSAwCm4gPSBOb25lCndoaWxlIHRhcmdldCAhPSBuIGFuZCBjb3VudCA8PSA1OgogICAgbiA9IGludChpbnB1dCgn6L6T5YWl5pWw5a2X77yaJykpCiAgICBjb3VudCA9IGNvdW50ICsgMQogICAgaWYgbiA+IHRhcmdldDoKICAgICAgICBwcmludCgn5aSq5aSn5LqG77yBJykKICAgIGVsaWYgbiA8IHRhcmdldDoKICAgICAgICBwcmludCgn5aSq5bCP5LqG77yBJykKICAgIGVsc2U6CiAgICAgICAgcHJpbnQoJ+eMnOWvueS6hu+8gScpCmlmIHRhcmdldCAhPSBuIGFuZCBjb3VudCA+IDU6CiAgICBwcmludCgoJ+ebruagh+aVsOWtl++8micgKyBzdHIodGFyZ2V0KSkpCiAgICBwcmludCgn5ri45oiP57uT5p2f77yBJykK</code> |