1 line
3.0 KiB
XML
1 line
3.0 KiB
XML
<xml version="Mixly 2.0 rc2" board="Arduino AVR@Arduino/Genuino Uno"><block type="factory_notes" id="eR|F$@*EANLLn:v4@fus" x="-936" y="164"><field name="VALUE">获取字符串的长度与获取字符串的最后一个字符</field><next><block type="factory_notes" id="s);rLSmu#X!f(hI[wXC{"><field name="VALUE">字符串长度从0开始计算,实际长度比字符数少1</field><next><block type="variables_declare" id="h`y=UvR_=[mU0Rzbgeku"><field name="variables_type">global_variate</field><field name="VAR">item</field><field name="TYPE">String</field><value name="VALUE"><block type="text" id="hj(BD~bao1C5.[r)@N4t"><field name="TEXT">hello</field></block></value><next><block type="serial_begin" id="O]+cPftgbZmPaI}gA,kR"><field name="serial_select">Serial</field><value name="CONTENT"><shadow type="math_number" id="zKO~3NO[15~h~HiqgdR,"><field name="NUM">115200</field></shadow></value></block></next></block></next></block></next></block><block type="base_setup" id="{_S}DYdm}Ty4VjuZV2}5" x="-935" y="327"><statement name="DO"><block type="serial_print" id="Gkj`:cBc3p4Qw`SE,_IE"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_length" id="_:?/hN)F5i0JCq:+=Jag"><value name="VAR"><shadow type="text" id="--ZmPOBw-Gie/2xP7Qs["><field name="TEXT">hello</field></shadow><block type="variables_get" id="YL{SKBpC7FR6.n=*eOMU"><field name="VAR">item</field></block></value></block></value><next><block type="serial_print" id="xoh88pyt^BDp,[.$l_#P"><field name="serial_select">Serial</field><field name="new_line">println</field><value name="CONTENT"><block type="text_char_at" id="#y_*N_1-L/HX|TbTv;Gd"><value name="VAR"><shadow type="text" id="sI]Xw5nkX+)3JhBtiO]h"><field name="TEXT">hello</field></shadow><block type="variables_get" id="MJ9$im!~?w#`fBmIl|Ni"><field name="VAR">item</field></block></value><value name="AT"><shadow type="math_number" id="C)-VrG!P[s=xltmOA1RY"><field name="NUM">0</field></shadow><block type="math_arithmetic" id="3@?Ns;9:$Q9Sg^RHYn7J"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="R+Utu$(?X)@(6_bxy+||"><field name="NUM">1</field></shadow><block type="text_length" id="XY#Jli/`xM4H-+w|gxB;"><value name="VAR"><shadow type="text" id="L!1VYIvXTvH587w1U0XX"><field name="TEXT">hello</field></shadow><block type="variables_get" id="7x}QZmK?/B,UW-D9}:7V"><field name="VAR">item</field></block></value></block></value><value name="B"><shadow type="math_number" id="ZS0ueOaEIJY@XyOAbc5("><field name="NUM">1</field></shadow></value></block></value></block></value></block></next></block></statement></block></xml><code>U3RyaW5nIGl0ZW07Cgp2b2lkIHNldHVwKCl7CiAgaXRlbSA9ICJoZWxsbyI7CiAgU2VyaWFsLmJlZ2luKDExNTIwMCk7CiAgU2VyaWFsLnByaW50bG4oU3RyaW5nKGl0ZW0pLmxlbmd0aCgpKTsKICBTZXJpYWwucHJpbnRsbihTdHJpbmcoaXRlbSkuY2hhckF0KChTdHJpbmcoaXRlbSkubGVuZ3RoKCkgLSAxKSkpOwp9Cgp2b2lkIGxvb3AoKXsKICAvL+iOt+WPluWtl+espuS4sueahOmVv+W6puS4juiOt+WPluWtl+espuS4sueahOacgOWQjuS4gOS4quWtl+espgogIC8v5a2X56ym5Liy6ZW/5bqm5LuOMOW8gOWni+iuoeeul++8jOWunumZhemVv+W6puavlOWtl+espuaVsOWwkTEKCn0=</code> |