Files
mixly3/boards/default/micropython_robot/examples/O60xUtcmy977/zUS59zKIO8t7.mix
2024-07-21 09:30:11 +08:00

1 line
4.6 KiB
XML

<xml version="Mixly 2.0 rc4" board="Python Robot@飞乙"><block type="storage_fileopen" id="$r8w{Tv*KHB4E:::+xTE" x="-1749" y="-505"><field name="MODE">w</field><value name="FILENAME"><shadow type="text" id="@s8i)GpHltHhvu0^gx0e"><field name="TEXT">test.txt</field></shadow></value><value name="FILE"><shadow type="variables_get" id="KNl`I-9ePg:htyfEna|B"><field name="VAR">f</field></shadow></value><next><block type="controls_forEach" id="Amsgo8.x.z9b;F]*p-#C"><value name="LIST"><shadow type="list_many_input" id="tF#T`0jUfGxj@ena)zUj"><field name="CONTENT">0,1,2,3</field></shadow><block type="controls_range" id="eu#)Rw|E@2z`r/^LUjAw"><value name="FROM"><shadow type="math_number" id="U,JjLVfSa,OI|=Z;YI?."><field name="NUM">0</field></shadow></value><value name="TO"><shadow type="math_number" id="@|(M388^n7QR~X(Lb~;1"><field name="NUM">100</field></shadow></value><value name="STEP"><shadow type="math_number" id="[:8U?kc{=wNw78AB$aql"><field name="NUM">1</field></shadow></value></block></value><value name="VAR"><shadow type="variables_get" id="sI_P0}`wN!@cnz#HI8RS"><field name="VAR">i</field></shadow></value><statement name="DO"><block type="storage_file_write" id="9j]Ir)q5!-kYJc$-d)[7"><value name="data"><shadow type="text" id="0Jh_@2/i`Nplk:Iw*WLO"><field name="TEXT">Mixly</field></shadow><block type="number_to_text" id="dc+#r5ngC?=yFF`pwSU,"><value name="VAR"><shadow type="variables_get" id="^=o?PtH#Ur`2cDwIe|Xj"><field name="VAR">x</field></shadow><block type="variables_get" id="^[fF_/a[d#Iz/(AODA13"><field name="VAR">i</field></block></value></block></value><value name="FILE"><shadow type="variables_get" id=":aJlEhaG/J0f:MZb+-sx"><field name="VAR">f</field></shadow></value><next><block type="storage_file_write" id="qZA.Xrf(z*:-_X8zj79d"><value name="data"><shadow type="text" id="XQ;J6cZhZGX-7#`sMZ-x"><field name="TEXT">Mixly</field></shadow><block type="ascii_to_char" id="y1y,g/bhF=yZOzUE@#0c"><value name="VAR"><shadow type="math_number" id="|v+WYU!hPo9^t)J;Rzdg"><field name="NUM">13</field></shadow></value></block></value><value name="FILE"><shadow type="variables_get" id="baV(L7d!WX-+@N^56je_"><field name="VAR">f</field></shadow></value></block></next></block></statement><next><block type="storage_close_file" id="xFGGsHak:B31J#D-29`q"><value name="FILE"><shadow type="variables_get" id="_$S!f)6X}qdUCS]=I|!R"><field name="VAR">f</field></shadow></value><next><block type="storage_fileopen" id="mz8Wn!v/QfN~4vZ?P`tJ"><field name="MODE">r</field><value name="FILENAME"><shadow type="text" id="AJ{xl?E|cqDR-/UrwQ!C"><field name="TEXT">test.txt</field></shadow></value><value name="FILE"><shadow type="variables_get" id="qM(-Ow,Z!^h`.qDt~{Zu"><field name="VAR">f</field></shadow></value><next><block type="variables_set" id="n$b2f[BLog8KbiKx^8Yu"><field name="VAR">s</field><value name="VALUE"><block type="storage_get_contents_without_para" id="+AD[X?yfc?)m5ur{$-_2"><field name="MODE">readline</field><value name="FILE"><shadow type="variables_get" id=".Y0,jeYDaHX4e2hZ95rN"><field name="VAR">f</field></shadow></value></block></value><next><block type="controls_whileUntil" id="#.b6{mDqY-7`C?[gb^Hq"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="aC^Q!668}j+dK9/MdXQX"><field name="BOOL">TRUE</field></shadow><block type="variables_get" id="uM*N}*_4Ex5Sw(5u;F/2"><field name="VAR">s</field></block></value><statement name="DO"><block type="system_print_inline" id="0=#zLh(doq7WQL:CyY*2"><value name="VAR"><shadow type="text" id=":sG+?MjsNI:x@Zd0Ie*j"><field name="TEXT">Mixly</field></shadow><block type="variables_get" id="t;a|TGU_BL}VCuW*~Uu!"><field name="VAR">s</field></block></value><next><block type="variables_set" id="[u49goXEvvit.tkcy:Z-"><field name="VAR">s</field><value name="VALUE"><block type="storage_get_contents_without_para" id="Du/0@qIR[8Nib=(S?~)B"><field name="MODE">readline</field><value name="FILE"><shadow type="variables_get" id="hIJzdn,}flM@N7dl-RXb"><field name="VAR">f</field></shadow></value></block></value></block></next></block></statement><next><block type="storage_close_file" id="tT.ls!Dp:JuL|@9FfrR@"><value name="FILE"><shadow type="variables_get" id="d[gKd1h6HNrtj,/PEVJM"><field name="VAR">f</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IG1hY2hpbmUKCgpmID0gb3BlbigndGVzdC50eHQnLCAndycpCmZvciBpIGluIHJhbmdlKDAsIDEwMCwgMSk6CiAgICBmLndyaXRlKHN0cihpKSkKICAgIGYud3JpdGUoY2hyKDEzKSkKZi5jbG9zZSgpCmYgPSBvcGVuKCd0ZXN0LnR4dCcsICdyJykKcyA9IGYucmVhZGxpbmUoKQp3aGlsZSBzOgogICAgcHJpbnQocyxlbmQgPSIiKQogICAgcyA9IGYucmVhZGxpbmUoKQpmLmNsb3NlKCkK</code>