build(boards): xpython板卡执行 npm run build:prod
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -378,7 +378,7 @@
|
||||
},
|
||||
"北师大版教材示例代码": {
|
||||
"八年级": {
|
||||
"第三单元": {
|
||||
"上册第三单元": {
|
||||
"3-12 MIXIO使用.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-12 MIXIO使用.mix"
|
||||
@@ -408,9 +408,9 @@
|
||||
"__name__": "3-5 MQTT协议.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第三单元"
|
||||
"__name__": "上册第三单元"
|
||||
},
|
||||
"第二单元": {
|
||||
"上册第二单元": {
|
||||
"2-11 RFID读取.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-11 RFID读取.mix"
|
||||
@@ -428,9 +428,25 @@
|
||||
"__name__": "2-5 楼道灯.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第二单元"
|
||||
"__name__": "上册第二单元"
|
||||
},
|
||||
"第五单元": {
|
||||
"上册第四单元": {
|
||||
"4-10-11 MIXIO学生抢答.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-10-11 MIXIO学生抢答.mix"
|
||||
},
|
||||
"4-15-16 MIXIO学生抢答2.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-15-16 MIXIO学生抢答2.mix"
|
||||
},
|
||||
"4-5 MIXIO学生点到.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-5 MIXIO学生点到.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册第四单元"
|
||||
},
|
||||
"下册第一单元": {
|
||||
"5-11 停车显示.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-11 停车显示.mix"
|
||||
@@ -448,9 +464,9 @@
|
||||
"__name__": "5-9 停车空位.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第五单元"
|
||||
"__name__": "下册第一单元"
|
||||
},
|
||||
"第六单元": {
|
||||
"下册第二单元": {
|
||||
"2-10 摔倒检测.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-10 摔倒检测.mix"
|
||||
@@ -464,27 +480,59 @@
|
||||
"__name__": "2-7 震动强度.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第六单元"
|
||||
},
|
||||
"第四单元": {
|
||||
"4-10-11 MIXIO学生抢答.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-10-11 MIXIO学生抢答.mix"
|
||||
},
|
||||
"4-15-16 MIXIO学生抢答2.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-15-16 MIXIO学生抢答2.mix"
|
||||
},
|
||||
"4-5 MIXIO学生点到.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-5 MIXIO学生点到.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第四单元"
|
||||
"__name__": "下册第二单元"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "八年级"
|
||||
},
|
||||
"六年级": {
|
||||
"上册第四单元": {
|
||||
"6上图4-17.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "6上图4-17.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册第四单元"
|
||||
},
|
||||
"下册第一单元": {
|
||||
"图1-12.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-12.mix"
|
||||
},
|
||||
"图1-16.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-16.mix"
|
||||
},
|
||||
"图1-22.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-22.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第一单元"
|
||||
},
|
||||
"下册第三单元": {
|
||||
"图3-22.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图3-22.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第三单元"
|
||||
},
|
||||
"下册第二单元": {
|
||||
"图2-7.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图2-7.mix"
|
||||
},
|
||||
"第二单元任务三习题(P56).mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第二单元任务三习题(P56).mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第二单元"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "六年级"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "北师大版教材示例代码"
|
||||
},
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -361,109 +361,161 @@
|
||||
"__name__": "44-2-智能小车-P双巡线(MEGO).mix"
|
||||
},
|
||||
"北师大版教材示例代码": {
|
||||
"第三单元": {
|
||||
"3-12 MIXIO使用.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-12 MIXIO使用.mix"
|
||||
"八年级": {
|
||||
"上册第三单元": {
|
||||
"3-12 MIXIO使用.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-12 MIXIO使用.mix"
|
||||
},
|
||||
"3-2a 无线发送.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-2a 无线发送.mix"
|
||||
},
|
||||
"3-2b 无线接收.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-2b 无线接收.mix"
|
||||
},
|
||||
"3-3a 蓝牙主机.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-3a 蓝牙主机.mix"
|
||||
},
|
||||
"3-3b 蓝牙从机.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-3b 蓝牙从机.mix"
|
||||
},
|
||||
"3-4 HTTP协议.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-4 HTTP协议.mix"
|
||||
},
|
||||
"3-5 MQTT协议.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-5 MQTT协议.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册第三单元"
|
||||
},
|
||||
"3-2a 无线发送.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-2a 无线发送.mix"
|
||||
"上册第二单元": {
|
||||
"2-11 RFID读取.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-11 RFID读取.mix"
|
||||
},
|
||||
"2-16 WIFI扫描.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-16 WIFI扫描.mix"
|
||||
},
|
||||
"2-4 获取光强.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-4 获取光强.mix"
|
||||
},
|
||||
"2-5 楼道灯.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-5 楼道灯.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册第二单元"
|
||||
},
|
||||
"3-2b 无线接收.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-2b 无线接收.mix"
|
||||
"上册第四单元": {
|
||||
"4-10-11 MIXIO学生抢答.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-10-11 MIXIO学生抢答.mix"
|
||||
},
|
||||
"4-15-16 MIXIO学生抢答2.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-15-16 MIXIO学生抢答2.mix"
|
||||
},
|
||||
"4-5 MIXIO学生点到.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-5 MIXIO学生点到.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册第四单元"
|
||||
},
|
||||
"3-3a 蓝牙主机.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-3a 蓝牙主机.mix"
|
||||
"下册第一单元": {
|
||||
"5-11 停车显示.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-11 停车显示.mix"
|
||||
},
|
||||
"5-19 车位检测.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-19 车位检测.mix"
|
||||
},
|
||||
"5-20 空位显示.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-20 空位显示.mix"
|
||||
},
|
||||
"5-9 停车空位.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-9 停车空位.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第一单元"
|
||||
},
|
||||
"3-3b 蓝牙从机.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-3b 蓝牙从机.mix"
|
||||
},
|
||||
"3-4 HTTP协议.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-4 HTTP协议.mix"
|
||||
},
|
||||
"3-5 MQTT协议.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "3-5 MQTT协议.mix"
|
||||
"下册第二单元": {
|
||||
"2-10 摔倒检测.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-10 摔倒检测.mix"
|
||||
},
|
||||
"2-2 温度与光照.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-2 温度与光照.mix"
|
||||
},
|
||||
"2-7 震动强度.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-7 震动强度.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第二单元"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第三单元"
|
||||
"__name__": "八年级"
|
||||
},
|
||||
"第二单元": {
|
||||
"2-11 RFID读取.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-11 RFID读取.mix"
|
||||
"六年级": {
|
||||
"上册第四单元": {
|
||||
"6上图4-17.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "6上图4-17.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册第四单元"
|
||||
},
|
||||
"2-16 WIFI扫描.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-16 WIFI扫描.mix"
|
||||
"下册第一单元": {
|
||||
"图1-12.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-12.mix"
|
||||
},
|
||||
"图1-16.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-16.mix"
|
||||
},
|
||||
"图1-22.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-22.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第一单元"
|
||||
},
|
||||
"2-4 获取光强.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-4 获取光强.mix"
|
||||
"下册第三单元": {
|
||||
"图3-22.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图3-22.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第三单元"
|
||||
},
|
||||
"2-5 楼道灯.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-5 楼道灯.mix"
|
||||
"下册第二单元": {
|
||||
"图2-7.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图2-7.mix"
|
||||
},
|
||||
"第二单元任务三习题(P56).mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第二单元任务三习题(P56).mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册第二单元"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第二单元"
|
||||
},
|
||||
"第五单元": {
|
||||
"5-11 停车显示.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-11 停车显示.mix"
|
||||
},
|
||||
"5-19 车位检测.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-19 车位检测.mix"
|
||||
},
|
||||
"5-20 空位显示.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-20 空位显示.mix"
|
||||
},
|
||||
"5-9 停车空位.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "5-9 停车空位.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第五单元"
|
||||
},
|
||||
"第六单元": {
|
||||
"2-10 摔倒检测.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-10 摔倒检测.mix"
|
||||
},
|
||||
"2-2 温度与光照.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-2 温度与光照.mix"
|
||||
},
|
||||
"2-7 震动强度.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-7 震动强度.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第六单元"
|
||||
},
|
||||
"第四单元": {
|
||||
"4-10-11 MIXIO学生抢答.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-10-11 MIXIO学生抢答.mix"
|
||||
},
|
||||
"4-15-16 MIXIO学生抢答2.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-15-16 MIXIO学生抢答2.mix"
|
||||
},
|
||||
"4-5 MIXIO学生点到.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "4-5 MIXIO学生点到.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "第四单元"
|
||||
"__name__": "六年级"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "北师大版教材示例代码"
|
||||
|
||||
@@ -1,4 +1,76 @@
|
||||
{
|
||||
"大同出版社-五年级": {
|
||||
"上册": {
|
||||
"第12课判断闰年.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第12课判断闰年.mix"
|
||||
},
|
||||
"第13课让计算机会数数1.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第13课让计算机会数数1.mix"
|
||||
},
|
||||
"第13课让计算机会数数2.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第13课让计算机会数数2.mix"
|
||||
},
|
||||
"第14课for循环.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第14课for循环.mix"
|
||||
},
|
||||
"第14课趣味数玩具.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第14课趣味数玩具.mix"
|
||||
},
|
||||
"第15课破译密码.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第15课破译密码.mix"
|
||||
},
|
||||
"第8课动物园购票.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第8课动物园购票.mix"
|
||||
},
|
||||
"第8课计算购书费.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第8课计算购书费.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册"
|
||||
},
|
||||
"下册": {
|
||||
"第12课网页排名算法.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第12课网页排名算法.mix"
|
||||
},
|
||||
"第1课比较交换找最大值.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第1课比较交换找最大值.mix"
|
||||
},
|
||||
"第2课选择排序(未要求代码).mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第2课选择排序(未要求代码).mix"
|
||||
},
|
||||
"第4课冒泡排序.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第4课冒泡排序.mix"
|
||||
},
|
||||
"第6课用算数求解鸡兔同笼.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第6课用算数求解鸡兔同笼.mix"
|
||||
},
|
||||
"第6课遍历求解鸡兔同笼.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第6课遍历求解鸡兔同笼.mix"
|
||||
},
|
||||
"第7课兔子增长算法.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第7课兔子增长算法.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "大同出版社-五年级"
|
||||
},
|
||||
"教学指南米思齐修订版": {
|
||||
"八年级": {
|
||||
"18-2 从物联网服务平台获取数据(python).mix": {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="-R?$,g?yY$eWQQ1yvnIw" x="-422" y="-51"><field name="VAR">year</field><value name="VALUE"><block type="inout_type_input" id="5Q.H$;P/hkT~(RO8)0}="><field name="DIR">int</field><value name="VAR"><shadow type="text" id=")bt[ALwgSd2(F;pH4T3s"><field name="TEXT">请输入一个年份:</field></shadow></value></block></value><next><block type="controls_if" id="2p0@;6}`HRfsK0@4RoHB"><mutation elseif="1" else="1"></mutation><value name="IF0"><block type="logic_operation" id="?~$/(V?#,{=QF~AcqFq7"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="TPdZ$XVif=,])!LX}T5Q"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="H8$P|zeahVw(sT}ztjLf"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="uM_c/6Z*f*KaGT,+=iS#"><field name="NUM">1</field></shadow><block type="variables_get" id="Oqlzy2#{#R0D~KzAFuA]"><field name="VAR">year</field></block></value><value name="B"><shadow type="math_number" id="3CDuh`b{j).}cqi0i$p}"><field name="NUM">4</field></shadow></value></block></value><value name="B"><block type="math_number" id="$W1q#gi]F[9Y=|*Lh^rN"><field name="NUM">0</field></block></value></block></value><value name="B"><block type="logic_compare" id="yFV`r?JS~kh`p?YRZ:,*"><field name="OP">NEQ</field><value name="A"><block type="math_arithmetic" id="y5vq,aq@tBw_.Ojt)TU2"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="uM_c/6Z*f*KaGT,+=iS#"><field name="NUM">1</field></shadow><block type="variables_get" id="e2s!76dOm+~f.nKru0W)"><field name="VAR">year</field></block></value><value name="B"><shadow type="math_number" id="PQ2I?UkyR7?Ja.G8a@b,"><field name="NUM">100</field></shadow></value></block></value><value name="B"><block type="math_number" id="n~tjsK*Bv:qnTFXArt!A"><field name="NUM">0</field></block></value></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="w5:=X8qq{^CzA]{BabV@"><mutation items="2"></mutation><value name="ADD0"><block type="variables_get" id=":w_RDJ7N^fiK{f.7^LL:"><field name="VAR">year</field></block></value><value name="ADD1"><block type="text" id="TQmMZn~$APFYv?|o0mkX"><field name="TEXT">是闰年</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="^rf_.AW~Aps;XDYPuhI["><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="qk}+,NlI_/r7,](=kH5,"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="uM_c/6Z*f*KaGT,+=iS#"><field name="NUM">1</field></shadow><block type="variables_get" id="-#}kl[+CFk62:j-$Dv7e"><field name="VAR">year</field></block></value><value name="B"><shadow type="math_number" id="*`Xb_5o:zNL`}iIYB~gn"><field name="NUM">400</field></shadow></value></block></value><value name="B"><block type="math_number" id="(2nk5}I![TyLA1f/KqcR"><field name="NUM">0</field></block></value></block></value><statement name="DO1"><block type="inout_print_many" id="dl2dO-;ZXORx3G/Laftn"><mutation items="2"></mutation><value name="ADD0"><block type="variables_get" id="5G8nk#He`eV._I|+Mb?a"><field name="VAR">year</field></block></value><value name="ADD1"><block type="text" id="NQhCarKhkl$Zg_FnR#TF"><field name="TEXT">是闰年</field></block></value></block></statement><statement name="ELSE"><block type="inout_print_many" id="G,.nKD}~$SO{j$v9M6f1"><mutation items="2"></mutation><value name="ADD0"><block type="variables_get" id="pjCNM*FORKhWb`SbG4)-"><field name="VAR">year</field></block></value><value name="ADD1"><block type="text" id="5b9vl.cwGi=Y[l#N74ZW"><field name="TEXT">是平年</field></block></value></block></statement></block></next></block></xml><config>{}</config><code>eWVhciA9IGludChpbnB1dCgn6K+36L6T5YWl5LiA5Liq5bm05Lu977yaJykpCmlmIHllYXIgJSA0ID09IDAgYW5kIHllYXIgJSAxMDAgIT0gMDoKICAgIHByaW50KHllYXIsICfmmK/pl7DlubQnKQplbGlmIHllYXIgJSA0MDAgPT0gMDoKICAgIHByaW50KHllYXIsICfmmK/pl7DlubQnKQplbHNlOgogICAgcHJpbnQoeWVhciwgJ+aYr+W5s+W5tCcpCg==</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="ZvKRW4ew-Bd4/V+?5G/c" x="-616" y="-48"><field name="VAR">start_time</field><value name="VALUE"><block type="controls_millis" id="j3xIg2ift+=@La{@a;D~"></block></value><next><block type="variables_set" id="7`.+!DeSA#w7lF3895TN"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="@PCbj|)4aHa[u=o#5~^6"><field name="NUM">1</field></block></value><next><block type="controls_whileUntil" id="kTmL:K.^K`pTAd88jido"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="Fja6m=H|j|xXQejl6mTd"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="?Iho0oIgI7v0*6/]mvV8"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="Ph!;YS@AxT?cHRoBWTOl"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="}3n(No50U(JZ0gM=RceE"><field name="NUM">1000</field></block></value></block></value><statement name="DO"><block type="inout_print" id="X}]v]0PnEZ~82*m*:H}/"><value name="VAR"><shadow type="text" id="6NItm[YB$1RC(e8R2X9k"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="3Z~UxMGoi,H_~2zrR=Y#"><field name="VAR">i</field></block></value><next><block type="variables_set" id=":{;FGV!66ijWM?)H`0Ng"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id="#.yS0=:)Q7kH6!(cBhAT"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="6qXh9drcsYxQhn?LmH}-"><field name="NUM">1</field></shadow><block type="variables_get" id="OX^RR@!hWI6WBmHo(!yW"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="GO*s7rfsfyuHZSJj/X#J"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="variables_set" id=";Wp=A_e6JN,6Q~n)Al{+"><field name="VAR">end_time</field><value name="VALUE"><block type="controls_millis" id="f4rX?-8Za^wzM{z]Zm]["></block></value><next><block type="inout_print_many" id="gspMgb!_XBa2bv4.tfqg"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="VL1:^@)#5p/uy?~)!5Ag"><field name="TEXT">输出1~1000所花时间为</field></block></value><value name="ADD1"><block type="math_arithmetic" id="6g17u895anXpNw!cRX1?"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="f/aB2V-@pi{dg#n@AcwL"><field name="NUM">1</field></shadow><block type="variables_get" id="BMi?L~;a+)uvMf9vtrU("><field name="VAR">end_time</field></block></value><value name="B"><shadow type="math_number" id="s5Et5=NE;hr2]vQ5=I@R"><field name="NUM">1</field></shadow><block type="variables_get" id="GptAtR4(.sd7eUkyRTuA"><field name="VAR">start_time</field></block></value></block></value><value name="ADD2"><block type="text" id="gyh!)g3oYeYscC5lp;a`"><field name="TEXT">秒</field></block></value></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKCgpzdGFydF90aW1lID0gdGltZS50aW1lKCkKaSA9IDEKd2hpbGUgaSA8PSAxMDAwOgogICAgcHJpbnQoaSkKICAgIGkgPSBpICsgMQplbmRfdGltZSA9IHRpbWUudGltZSgpCnByaW50KCfovpPlh7oxfjEwMDDmiYDoirHml7bpl7TkuLonLCBlbmRfdGltZSAtIHN0YXJ0X3RpbWUsICfnp5InKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="otn94-@p`V|Q5tU-lgN7" x="-616" y="-48"><field name="VAR">start_time</field><value name="VALUE"><block type="controls_millis" id="5/~DspnhOeb|7.ioK4e$"></block></value><next><block type="variables_set" id="$;YvKZ3?fOBgNG.fD]*N"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="E^J9^sNQ[qqF|M0ESFM5"><field name="NUM">1</field></block></value><next><block type="variables_set" id="bIrmS}.8nN~+ph!mU8uo"><field name="VAR">sum</field><value name="VALUE"><block type="math_number" id="N3Om@h47qg.Q(A[8?]TD"><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="et`p6JUHh65srC?mA2:?"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="N=L2AbnfWIO0IC|0!Y9w"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="#AcO=vefC2y_UpR@B7V1"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="s_q#@OS/.0UkO!7QEkvo"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="oFP.kXGh}^EiQw_w~Lt:"><field name="NUM">1000000</field></block></value></block></value><statement name="DO"><block type="variables_set" id="wy$]X_oGPrI9Kq#$2Rs3"><field name="VAR">sum</field><value name="VALUE"><block type="math_arithmetic" id="N|lDRBTyMXajVe+z:,$D"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="2ee:r;yy_X/v!+rv{y[6"><field name="NUM">1</field></shadow><block type="variables_get" id="6=1K|licE*_*d=iw,D?h"><field name="VAR">sum</field></block></value><value name="B"><shadow type="math_number" id="u]kF;Z5=$$^Vtf(Hf3c~"><field name="NUM">1</field></shadow><block type="variables_get" id="z;R7X.?s~(:uiOie,LoF"><field name="VAR">i</field></block></value></block></value><next><block type="variables_set" id="=_O}w+*siC;m^GF57pRi"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id="W9MP-^!#oPoItOfg0?J@"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="2ee:r;yy_X/v!+rv{y[6"><field name="NUM">1</field></shadow><block type="variables_get" id="JwagDWCY$5,Hk{7y+etF"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="y1hSPdjK;o~gt(o9mq!I"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="inout_print_many" id="$T/=F?mj_6xG3K{3,qF5"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="oY]BS|o7.ISAg@[n6|SD"><field name="TEXT">1+2+……+1000000=</field></block></value><value name="ADD1"><block type="variables_get" id="8j_-EfMMe.XIO7@#S/e$"><field name="VAR">sum</field></block></value><next><block type="variables_set" id="qujcF)U*(^)__pZ$4I2L"><field name="VAR">end_time</field><value name="VALUE"><block type="controls_millis" id="(vuDPyuEva*rs!#o/H3v"></block></value><next><block type="inout_print_many" id="tffMhEIyj!tjXe5z3FJw"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="yJk$D`)j#X$c4fa7PkPu"><field name="TEXT">累加1~1000000所花时间为</field></block></value><value name="ADD1"><block type="math_arithmetic" id="{](M4JMywR0J=;TEdXK5"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="Ti3Bqy!}fvRrgqSsrdG@"><field name="NUM">1</field></shadow><block type="variables_get" id="Cf)cAM/Ow1=k.`@z3GIt"><field name="VAR">end_time</field></block></value><value name="B"><shadow type="math_number" id="$mj|G2+)]qZnaYej;sxl"><field name="NUM">1</field></shadow><block type="variables_get" id="YBlB=ZJHPmC)VkW/`2;d"><field name="VAR">start_time</field></block></value></block></value><value name="ADD2"><block type="text" id="KIbKrh].=_$b}EygPE-E"><field name="TEXT">秒</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKCgpzdGFydF90aW1lID0gdGltZS50aW1lKCkKaSA9IDEKc3VtMiA9IDAKd2hpbGUgaSA8PSAxMDAwMDAwOgogICAgc3VtMiA9IHN1bTIgKyBpCiAgICBpID0gaSArIDEKcHJpbnQoJzErMivigKbigKYrMTAwMDAwMD0nLCBzdW0yKQplbmRfdGltZSA9IHRpbWUudGltZSgpCnByaW50KCfntK/liqAxfjEwMDAwMDDmiYDoirHml7bpl7TkuLonLCBlbmRfdGltZSAtIHN0YXJ0X3RpbWUsICfnp5InKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="controls_forEach" id="g.^o$yehb91Ydu{l*Df0" x="-556" y="-100"><value name="LIST"><shadow type="list_many_input" id="*C;J=n[@-$3eDRQi#SWL"><field name="CONTENT">'welcome','to','our','world'</field></shadow></value><value name="VAR"><shadow type="variables_get" id="Mj_Q7o{i(cV*/]OAhg/x"><field name="VAR">str</field></shadow></value><statement name="DO"><block type="inout_print_inline" id="KS$uc96C~@PJT5V}o(*["><value name="VAR"><shadow type="text" id="]48MAi43,@1#am}UkwkN"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="^kWHla!,N_~3xqGAL}:n"><field name="VAR">str</field></block></value></block></statement></block></xml><config>{}</config><code>Zm9yIHN0cjIgaW4gWyd3ZWxjb21lJywndG8nLCdvdXInLCd3b3JsZCddOgogICAgcHJpbnQoc3RyMixlbmQgPSIiKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="bIrmS}.8nN~+ph!mU8uo" x="-586" y="-104"><field name="VAR">n</field><value name="VALUE"><block type="math_number" id="N3Om@h47qg.Q(A[8?]TD"><field name="NUM">101</field></block></value><next><block type="controls_whileUntil" id="et`p6JUHh65srC?mA2:?"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="N=L2AbnfWIO0IC|0!Y9w"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="#AcO=vefC2y_UpR@B7V1"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="s_q#@OS/.0UkO!7QEkvo"><field name="VAR">n</field></block></value><value name="B"><block type="math_number" id="oFP.kXGh}^EiQw_w~Lt:"><field name="NUM">200</field></block></value></block></value><statement name="DO"><block type="controls_if" id="kJH|iQ$j):3O7.H/L+@r"><value name="IF0"><block type="logic_operation" id="==L,KsdwOLbm!v{Rx*z;"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="l7[Z88)EnF!G_u`sQUo3"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="#lSaoU1idZ:kPz^?e0OP"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="F+1a/0iwFz]]st;ZKR3D"><field name="NUM">1</field></shadow><block type="variables_get" id="w@q!bb]|67MGH/I=!jjj"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="]Ri=Bk[D`8S!DPbWPObl"><field name="NUM">5</field></shadow></value></block></value><value name="B"><block type="math_number" id="iv$1QAeS6)zR^w=c,Yw5"><field name="NUM">3</field></block></value></block></value><value name="B"><block type="logic_compare" id="qE8c?-RxQ;13}62CB1N/"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="S}a2-:lNI{yaN/u;+F9`"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="F+1a/0iwFz]]st;ZKR3D"><field name="NUM">1</field></shadow><block type="variables_get" id=":2=5h@?Qe!EfMV`HU]8:"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="#EQRVj_AOSn_liU#h0F*"><field name="NUM">7</field></shadow></value></block></value><value name="B"><block type="math_number" id="oDOmDrmG$jyy$65Tp?^."><field name="NUM">2</field></block></value></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="$T/=F?mj_6xG3K{3,qF5"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="oY]BS|o7.ISAg@[n6|SD"><field name="TEXT">符合条件的玩具数量:</field></block></value><value name="ADD1"><block type="variables_get" id="8j_-EfMMe.XIO7@#S/e$"><field name="VAR">n</field></block></value></block></statement><next><block type="variables_set" id="di_gpeJ{QaBIct:Th-UV"><field name="VAR">n</field><value name="VALUE"><block type="math_arithmetic" id="KSLc-[BBepl*J5YF1.;B"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="hEJbkT{RW#=rp3=xQUyH"><field name="NUM">1</field></shadow><block type="variables_get" id="-HUQJ;}/-UpGK|e9v#t)"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="f/w5b4DALPuVu@`(z=D_"><field name="NUM">3</field></shadow></value></block></value></block></next></block></statement></block></next></block></xml><config>{}</config><code>biA9IDEwMQp3aGlsZSBuIDw9IDIwMDoKICAgIGlmIG4gJSA1ID09IDMgYW5kIG4gJSA3ID09IDI6CiAgICAgICAgcHJpbnQoJ+espuWQiOadoeS7tueahOeOqeWFt+aVsOmHj++8micsIG4pCiAgICBuID0gbiArIDMK</code>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="-R?$,g?yY$eWQQ1yvnIw" x="-487" y="-84"><field name="VAR">height</field><value name="VALUE"><block type="inout_type_input" id="5Q.H$;P/hkT~(RO8)0}="><field name="DIR">float</field><value name="VAR"><shadow type="text" id=")bt[ALwgSd2(F;pH4T3s"><field name="TEXT">请输入您的身高(米):</field></shadow></value></block></value><next><block type="controls_if" id="2p0@;6}`HRfsK0@4RoHB"><mutation else="1"></mutation><value name="IF0"><block type="logic_compare" id="TPdZ$XVif=,])!LX}T5Q"><field name="OP">LT</field><value name="A"><block type="variables_get" id="^.-!rzU{YCc|hc$yT6]="><field name="VAR">height</field></block></value><value name="B"><block type="math_number" id="$W1q#gi]F[9Y=|*Lh^rN"><field name="NUM">1.2</field></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="w5:=X8qq{^CzA]{BabV@"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="TQmMZn~$APFYv?|o0mkX"><field name="TEXT">您的身高为:</field></block></value><value name="ADD1"><block type="variables_get" id="dO04_XE?P9.K=mSQ2:R:"><field name="VAR">height</field></block></value><value name="ADD2"><block type="text" id="2wmCck-jR69sr^:U`]fq"><field name="TEXT">米,免票</field></block></value></block></statement><statement name="ELSE"><block type="inout_print_many" id="}A!d0HXuvJq(P1~@^i,*"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="dA89V.Jh4PYDKy5)/87-"><field name="TEXT">您的身高为:</field></block></value><value name="ADD1"><block type="variables_get" id="RR=h_hWa(tsxbSiHn4.t"><field name="VAR">height</field></block></value><value name="ADD2"><block type="text" id="mrlx/Q*DPtgKG-e{DvUG"><field name="TEXT">米,可以购买半价票</field></block></value></block></statement></block></next></block></xml><config>{}</config><code>aGVpZ2h0ID0gZmxvYXQoaW5wdXQoJ+ivt+i+k+WFpeaCqOeahOi6q+mrmO+8iOexs++8ie+8micpKQppZiBoZWlnaHQgPCAxLjI6CiAgICBwcmludCgn5oKo55qE6Lqr6auY5Li677yaJywgaGVpZ2h0LCAn57Gz77yM5YWN56WoJykKZWxzZToKICAgIHByaW50KCfmgqjnmoTouqvpq5jkuLrvvJonLCBoZWlnaHQsICfnsbPvvIzlj6/ku6XotK3kubDljYrku7fnpagnKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="-R?$,g?yY$eWQQ1yvnIw" x="-487" y="-84"><field name="VAR">a</field><value name="VALUE"><block type="inout_type_input" id="5Q.H$;P/hkT~(RO8)0}="><field name="DIR">int</field><value name="VAR"><shadow type="text" id=")bt[ALwgSd2(F;pH4T3s"><field name="TEXT">输入科普书的册数:</field></shadow></value></block></value><next><block type="variables_set" id=".g3B,yUItf.G]0!4:U+q"><field name="VAR">h</field><value name="VALUE"><block type="math_arithmetic" id="SMPJJDofE7CKv)VmD?#-"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="wv+?nIV(ItVfy}l`z2P{"><field name="NUM">1</field></shadow><block type="variables_get" id="!;a|Gqjewb$;{}eQrLJx"><field name="VAR">a</field></block></value><value name="B"><shadow type="math_number" id="K{[cbcv@tY@{R(iH5#r9"><field name="NUM">8</field></shadow></value></block></value><next><block type="variables_set" id="Q)xOk|QtppLdF!wN72DA"><field name="VAR">b</field><value name="VALUE"><block type="inout_type_input" id="]Z8m0T`@aHyr=0*P+cy*"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="q5Q=*LWxH5)ju^xTu4C@"><field name="TEXT">输入故事书的册数:</field></shadow></value></block></value><next><block type="variables_set" id="?J-EjJzOzBuOB*VrTusw"><field name="VAR">j</field><value name="VALUE"><block type="math_arithmetic" id="r+UsPw-?_zKDilI}ATEh"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="wv+?nIV(ItVfy}l`z2P{"><field name="NUM">1</field></shadow><block type="variables_get" id="`}XIHOCwZA8BlUZI1e,j"><field name="VAR">b</field></block></value><value name="B"><shadow type="math_number" id="HtG=t?R`ADWJW~iS7?k."><field name="NUM">9</field></shadow></value></block></value><next><block type="variables_set" id="]`Zu[mpG!#,UpvdOervZ"><field name="VAR">s</field><value name="VALUE"><block type="math_arithmetic" id="~5=8S4AamDLQZN/-**Jq"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="wv+?nIV(ItVfy}l`z2P{"><field name="NUM">1</field></shadow><block type="variables_get" id="pc}|]h7z*Au-xTB~Ljl~"><field name="VAR">h</field></block></value><value name="B"><shadow type="math_number" id="f$o^=`[uJN*ht;8`:cu^"><field name="NUM">9</field></shadow><block type="variables_get" id="}$|`C1GIxE{]RGKQTR;j"><field name="VAR">j</field></block></value></block></value><next><block type="inout_print_many" id="w5:=X8qq{^CzA]{BabV@"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="TQmMZn~$APFYv?|o0mkX"><field name="TEXT">购书费用是:</field></block></value><value name="ADD1"><block type="variables_get" id="QOB{2E_rxhB)2:kQSS(u"><field name="VAR">s</field></block></value></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>YSA9IGludChpbnB1dCgn6L6T5YWl56eR5pmu5Lmm55qE5YaM5pWw77yaJykpCmggPSBhICogOApiID0gaW50KGlucHV0KCfovpPlhaXmlYXkuovkuabnmoTlhozmlbDvvJonKSkKaiA9IGIgKiA5CnMgPSBoICsgagpwcmludCgn6LSt5Lmm6LS555So5piv77yaJywgcykK</code>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="lP5vcAMqmIb=b0upxF)?" x="-802" y="-135"><field name="VAR">num</field><value name="VALUE"><block type="list_many_input" id="-rn_Ue:1:1Wy5;_mo]Lc"><field name="CONTENT">17,19,15,20,19</field></block></value><next><block type="variables_set" id=":8@XmhJ0Yv2}B9]tpiEC"><field name="VAR">cc</field><value name="VALUE"><block type="list_trig" id="]2?bx5k~z9_9~S@N2W]L"><field name="OP">LEN</field><value name="data"><shadow type="variables_get" id="T(+3q3TN4fy![JVGi54S"><field name="VAR">num</field></shadow></value></block></value><next><block type="variables_set" id="gLZ*+E:E#T5M`n$hE7X-"><field name="VAR">a</field><value name="VALUE"><block type="lists_get_index" id="?:Cf0?2,{TKma#b{r-wm"><value name="LIST"><shadow type="variables_get" id="x3PW$9.4BG~w4Wblq2@|"><field name="VAR">num</field></shadow></value><value name="AT"><shadow type="math_number" id="8}6=E`QB~kx8@2+p,l0j"><field name="NUM">0</field></shadow></value></block></value><next><block type="variables_set" id="]qALM6PMq{R!-;:.!!uD"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="V+RZ5bKIL`+/.ruSnnt!"><field name="NUM">1</field></block></value><next><block type="controls_whileUntil" id=")ShbCY*kzHTK?ac.eT*v"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=".T|+-NhOeT[LI#K+rSwj"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="vYEtzl9{U-)kLI_;y:.o"><field name="OP">LT</field><value name="A"><block type="variables_get" id=";6*XGo]dFWQHQC+ok{ME"><field name="VAR">i</field></block></value><value name="B"><block type="variables_get" id="h:2/W-+TmmXMrod8evGe"><field name="VAR">cc</field></block></value></block></value><statement name="DO"><block type="controls_if" id=";l*gN2ns9gb#{xMCu`Pe"><value name="IF0"><block type="logic_compare" id="YdG2$4_w(P`TSn=XUQBA"><field name="OP">GT</field><value name="A"><block type="lists_get_index" id="P#s5wu;Px/NX_.~A`:iD"><value name="LIST"><shadow type="variables_get" id="b7^c]DtF1Pd/hyJTHO.9"><field name="VAR">num</field></shadow></value><value name="AT"><shadow type="math_number" id="]Gy*.C=87UXi]doDV!`^"><field name="NUM">0</field></shadow><block type="variables_get" id="8fow#.Jy7o`g5nJ,Dhu5"><field name="VAR">i</field></block></value></block></value><value name="B"><block type="variables_get" id="oN4rOpP^krHV-(HhT)wR"><field name="VAR">a</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="xd,4={8bmbM+;m[FaoIT"><field name="VAR">a</field><value name="VALUE"><block type="lists_get_index" id="ihF|[,wIE/x$76}R/A^|"><value name="LIST"><shadow type="variables_get" id="C)g8G3qUxW4fST@c[c:$"><field name="VAR">num</field></shadow></value><value name="AT"><shadow type="math_number" id="s*Q8[xXJ,cgO5Y;$!(ZM"><field name="NUM">0</field></shadow><block type="variables_get" id="+*^]JaH06iPv~E*348$J"><field name="VAR">i</field></block></value></block></value></block></statement><next><block type="variables_set" id="5.r[iD52~kuj+KSTV0g5"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id=";[TG.@X_)fRw4j/7+-le"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="fdAf!6P@PNU92@[/s):W"><field name="NUM">1</field></shadow><block type="variables_get" id="sk,e/suTr(Zjektv8X0X"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="2@E5SX;(/b[Y,XW$_G^e"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="inout_print_many" id="{y3Nrgd?AHHNT5vmq_RL"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="Dv$mZJ@4hk92=E61TMl["><field name="TEXT">最大数为</field></block></value><value name="ADD1"><block type="variables_get" id="VZGIZ9F#r/yd`Yy[iQ=W"><field name="VAR">a</field></block></value></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IG1hdGgKCgpudW0gPSBbMTcsMTksMTUsMjAsMTldCmNjID0gbGVuKG51bSkKYSA9IG51bVswXQppID0gMQp3aGlsZSBpIDwgY2M6CiAgICBpZiBudW1baV0gPiBhOgogICAgICAgIGEgPSBudW1baV0KICAgIGkgPSBpICsgMQpwcmludCgn5pyA5aSn5pWw5Li6JywgYSkK</code>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="R(w+..bO#^[eX4iLdlf^" x="-276" y="-193"><field name="VAR">a</field><value name="VALUE"><block type="inout_type_input" id="?xD~vs+h{BU0|O0my2HZ"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="3b4hG/(1yKd+EAGfX*dM"><field name="TEXT">一共有多少个头:</field></shadow></value></block></value><next><block type="variables_set" id="3C?ek~+}ksUCbib~hL|p"><field name="VAR">b</field><value name="VALUE"><block type="inout_type_input" id=".urRE)FG~kjU7*]yDNMZ"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="*gE``8#;_aZm2vyONNg["><field name="TEXT">一共有多少只脚:</field></shadow></value></block></value><next><block type="variables_set" id="T=4]I+^@G0!XW|v}Df$x"><field name="VAR">c</field><value name="VALUE"><block type="math_arithmetic" id="dOn|1$EX,wI$Y^+K/_Xw"><field name="OP">DIVIDE</field><value name="A"><shadow type="math_number" id="NXtm3;_Dsfhm{Drpo)MH"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="I2tM;xAwtnFAde|am2fU"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="kK^xF#9{HVK#9Y_@81Ho"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="t4IRnlOP75yjGW50y;|)"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="oWmvw^J@w0E.K_N@Ky[x"><field name="NUM">1</field></shadow><block type="variables_get" id="ru~!dky~lvkiX13TK_P6"><field name="VAR">a</field></block></value><value name="B"><shadow type="math_number" id="sMIw+oK~_A`1F7;vuEI7"><field name="NUM">4</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="C9U;dREUHb1@hwOPOszq"><field name="NUM">1</field></shadow><block type="variables_get" id="KuVITTfD-5?^ExP4(xYA"><field name="VAR">b</field></block></value></block></value><value name="B"><shadow type="math_number" id="PjNqZv3TL}`$5p[xZ;DK"><field name="NUM">2</field></shadow></value></block></value><next><block type="inout_print_many" id=".Noj;poL*3ZlbAzd6wnb"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="QdKak}y2nxCcu-o$}=|;"><field name="TEXT">鸡有:</field></block></value><value name="ADD1"><block type="text_to_number" id="sHV=wH;7.F{!nA|,[=s,"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="T-RuoI_U|i=`-U^-Cb-["><field name="VAR">x</field></shadow><block type="variables_get" id="@2tK=[c9S~_rA?tFz=Qr"><field name="VAR">c</field></block></value></block></value><value name="ADD2"><block type="text" id="u)M7gK7qy^{XOpMeYA!G"><field name="TEXT">只</field></block></value><next><block type="inout_print_many" id="2{=?,+8TN4Ibzn#`zW2i"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="2Y06PUp*2Ht6C[n)$XZ}"><field name="TEXT">兔有:</field></block></value><value name="ADD1"><block type="text_to_number" id="4(vMJx~G*F=ZQ.L$+qRg"><field name="TOWHAT">int</field><value name="VAR"><shadow type="variables_get" id="T-RuoI_U|i=`-U^-Cb-["><field name="VAR">x</field></shadow><block type="math_arithmetic" id="b+PHw+as*=`ik@ph:8Mo"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="oWmvw^J@w0E.K_N@Ky[x"><field name="NUM">1</field></shadow><block type="variables_get" id="K=kSHX.58Nb`N)v@r}+G"><field name="VAR">a</field></block></value><value name="B"><shadow type="math_number" id="?nW9)/{jjZlnx1w}I?bv"><field name="NUM">4</field></shadow><block type="variables_get" id="P^mA)$0Bt~fo!0vOwXT^"><field name="VAR">c</field></block></value></block></value></block></value><value name="ADD2"><block type="text" id="_}Do?f/GfJ.pIIss3cSz"><field name="TEXT">只</field></block></value></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>YSA9IGludChpbnB1dCgn5LiA5YWx5pyJ5aSa5bCR5Liq5aS077yaJykpCmIgPSBpbnQoaW5wdXQoJ+S4gOWFseacieWkmuWwkeWPquiEmu+8micpKQpjID0gKGEgKiA0IC0gYikgLyAyCnByaW50KCfpuKHmnInvvJonLCBpbnQoYyksICflj6onKQpwcmludCgn5YWU5pyJ77yaJywgaW50KChhIC0gYykpLCAn5Y+qJykK</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="FeJO!Dy)XaIKt^^ZU@6u" x="-607" y="-102"><field name="VAR">a</field><value name="VALUE"><block type="math_number" id="tzebmD6G)d~r6!zOL5yN"><field name="NUM">35</field></block></value><next><block type="variables_set" id="2bo@A/H(U![@k8EYzp0J"><field name="VAR">b</field><value name="VALUE"><block type="math_number" id="[`UuPYFSw!nzdtjI]X]["><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="{Ul{qo=^Y}4b;rc1rGe]"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="DX_??^ib}6ca!ZWGeDt("><field name="BOOL">TRUE</field></shadow></value><statement name="DO"><block type="variables_set" id="ftWbIO]xI!xzy=1FdUbD"><field name="VAR">c</field><value name="VALUE"><block type="math_arithmetic" id="7;]K+adhsP4_;B:?]=vW"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="U5u8^/cERyr;JCQcKjE@"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="}D+^zN|NmIcD9V=Pg-vR"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="k5clc4Endnr1DsOu9te^"><field name="NUM">1</field></shadow><block type="variables_get" id=":.Sb2d5eH$q_[,WgRN@j"><field name="VAR">a</field></block></value><value name="B"><shadow type="math_number" id="9Lt|]Zr5W8(,GVb2RfKi"><field name="NUM">2</field></shadow></value></block></value><value name="B"><shadow type="math_number" id="rjtPurzun,$5KyVQC]J="><field name="NUM">1</field></shadow><block type="math_arithmetic" id="iZ:!,xjeA?-/Y.NO#TQh"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="k5clc4Endnr1DsOu9te^"><field name="NUM">1</field></shadow><block type="variables_get" id="!J`RYL@K9`QdmGkQg4dC"><field name="VAR">b</field></block></value><value name="B"><shadow type="math_number" id="OuaK@8NC.MM)XRWKxaQZ"><field name="NUM">4</field></shadow></value></block></value></block></value><next><block type="controls_if" id="kHyoU~Qu_79J2-+IAj^z"><mutation else="1"></mutation><value name="IF0"><block type="logic_compare" id="IWp}}WN#~3lWDn:(eo9s"><field name="OP">EQ</field><value name="A"><block type="variables_get" id="UmaZYX9Fo3pH!*qGkJ5|"><field name="VAR">c</field></block></value><value name="B"><block type="math_number" id="jn^lSiP8_qS8F4*|c*`y"><field name="NUM">94</field></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="GeJ6z~~Qie|m;LjQT|lq"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="9s6-6O;|+1(1~+lqRmFX"><field name="TEXT">鸡的数量:</field></block></value><value name="ADD1"><block type="variables_get" id="0B*GLD4.us4Bn/R[f}hC"><field name="VAR">a</field></block></value><next><block type="inout_print_many" id="kqDa$mw8[uedADFP!MyK"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="C!|?_-]GT,c7*!mzT:|?"><field name="TEXT">兔的数量:</field></block></value><value name="ADD1"><block type="variables_get" id="Z9T9Q36{5kt=x7H1y[t$"><field name="VAR">b</field></block></value><next><block type="controls_flow_statements" id="/ES$/7enByM@?7BgRBEp"><field name="FLOW">BREAK</field></block></next></block></next></block></statement><statement name="ELSE"><block type="variables_set" id=":o81MdCzs=tX,Y`cJXRY"><field name="VAR">a</field><value name="VALUE"><block type="math_arithmetic" id="OF]!roH4Qr=|DGjv@ZA8"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="f:G`BJFLWcM#WMvGN=+Y"><field name="NUM">1</field></shadow><block type="variables_get" id="Og)fn6$x~*e6,}L8X,+f"><field name="VAR">a</field></block></value><value name="B"><shadow type="math_number" id="w~/Zz6:oTZEV89NO#j3?"><field name="NUM">1</field></shadow></value></block></value><next><block type="variables_set" id="5JwK#W.zFHRzAc=!3![R"><field name="VAR">b</field><value name="VALUE"><block type="math_arithmetic" id="?k?qHuzfaJ~UVQb9OI4("><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="f:G`BJFLWcM#WMvGN=+Y"><field name="NUM">1</field></shadow><block type="variables_get" id="V~pN3FSueI^dx6-R.+YD"><field name="VAR">b</field></block></value><value name="B"><shadow type="math_number" id="RQ(/P2beFE29$ww)-EfY"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement></block></next></block></statement></block></next></block></next></block></xml><config>{}</config><code>YSA9IDM1CmIgPSAwCndoaWxlIFRydWU6CiAgICBjID0gYSAqIDIgKyBiICogNAogICAgaWYgYyA9PSA5NDoKICAgICAgICBwcmludCgn6bih55qE5pWw6YeP77yaJywgYSkKICAgICAgICBwcmludCgn5YWU55qE5pWw6YeP77yaJywgYikKICAgICAgICBicmVhawogICAgZWxzZToKICAgICAgICBhID0gYSAtIDEKICAgICAgICBiID0gYiArIDEK</code>
|
||||
File diff suppressed because one or more lines are too long
1
boards/default/python_skulpt/__init___2e557e02.js
Normal file
1
boards/default/python_skulpt/__init___2e557e02.js
Normal file
@@ -0,0 +1 @@
|
||||
var $builtinmodule=function(n){return{}};
|
||||
1
boards/default/python_skulpt/__init___6abeeadb.js
Normal file
1
boards/default/python_skulpt/__init___6abeeadb.js
Normal file
File diff suppressed because one or more lines are too long
1
boards/default/python_skulpt/__init___d8058b1b.js
Normal file
1
boards/default/python_skulpt/__init___d8058b1b.js
Normal file
File diff suppressed because one or more lines are too long
1
boards/default/python_skulpt/__init___e4689b86.js
Normal file
1
boards/default/python_skulpt/__init___e4689b86.js
Normal file
@@ -0,0 +1 @@
|
||||
var $builtinmodule=function(e){var t={},n=[[255,89,149],[182,227,84],[254,237,108],[140,237,255],[158,111,254],[137,156,161],[248,248,242],[191,70,70],[81,96,131],[249,38,114],[130,180,20],[253,151,31],[86,194,214],[128,131,132],[140,84,254],[70,84,87]],i=["title","width","height","range","include_x_axis","x_title","y_title","title_font_size","fill","stroke","x_labels"];function r(e){this._options=e,this._data=[]}function a(e){return e&&e!==Sk.builtin.none.none$}function l(e,t){return t&&t.length&&(e.co_varnames=["__self__"].concat(t),e.$defaults=function(e,t){if(Array.prototype.fill)return Array.prototype.fill.bind(e)(t,arguments[2],arguments[3]);if(null==e)throw new TypeError("arr is null or not defined");for(var n=Object(e),i=n.length>>>0,r=0|arguments[2],a=r<0?Math.max(i+r,0):Math.min(r,i),l=arguments[3],o=void 0===l?i:0|l,s=o<0?Math.max(i+o,0):Math.min(o,i);a<s;)n[a]=value,a++;return n}(new Array(t.length),Sk.builtin.none.none$)),new Sk.builtin.func(e)}function o(e,n){t[e]=Sk.misceval.buildClass(t,(function(e,t){t.__init__=l((function(e,t,n,i,l,o,s,c,d,u,h,f){var g={};a(t)&&(g.title=t.v),a(n)&&(g.width=n.v),a(i)&&(g.height=i.v),a(l)&&(g.range={min:l.v[0].v,max:l.v[1].v}),a(o)&&(g.include_x_axis=o.v),a(s)&&(g.x_title=s.v),a(c)&&(g.y_title=c.v),a(d)&&(g.title_font_size=d.v),a(u)&&(g.fill=u.v),a(h)&&(g.stroke=h.v),a(f)&&(g.x_labels=f.v),e.instance=new r(g)}),i),t.add=new Sk.builtin.func((function(e,t,n){return n=n instanceof Sk.builtin.list?Sk.ffi.remapToJs(n):[n.v],e.instance.add(t.v,n)})),t.render=new Sk.builtin.func((function(e){var t,r,a;for(t=0;t<i.length;t++)r=i[t],void 0!==(a=e.tp$getattr(r))&&(e.instance._options[r]=Sk.ffi.remapToJs(a));return e.instance.render(n)}))}),e,[])}return r.prototype.add=function(e,t){var i,r;return this._data.unshift({name:e,color:(i=n[this._data.length%n.length],r=.75,"rgba("+i.join(",")+","+r+")"),data:t,marker:{symbol:"circle"},stack:1}),""},r.prototype.render=function(e){var t=this._options,n=Sk.domOutput("<div></div>"),i={color:"#FFFFFF"};t.title_font_size&&(i["font-size"]=t.title_font_size+"px");var r=[];t.range&&r.push({value:t.range.min,width:1,color:"#FFFFFF"});for(var a=Sk.availableWidth||400,l=Math.min(a,Sk.availableHeight||300),o={chart:{width:t.width||a,height:t.height||l,backgroundColor:"#000"},credits:{enabled:!1},title:{text:t.title,style:i},xAxis:{title:{text:t.x_title||null,style:i,margin:20},categories:t.x_labels,labels:{enabled:!!t.x_labels},tickLength:0},yAxis:{startOnTick:!1,title:{text:t.y_title||null,style:i,margin:20},plotLines:r,min:t.include_x_axis?0:t.range?t.range.min:null,max:t.range?t.range.max:null,gridLineDashStyle:"ShortDash",gridLineColor:"#DDD",tickLength:0},legend:{itemStyle:{color:"#FFFFFF"},layout:"vertical",align:"left",verticalAlign:"top",y:50,borderWidth:0},labels:{style:{color:"#FFFFFF"}},series:this._data},s=0;s<o.series.length;s++)o.series[s].legendIndex=o.series.length-s,o.series[s].index=o.series.length-s;return e&&(o=e(t,o)),n.highcharts(o),""},o("Line",(function(e,t){return t.chart.type=e.fill?"area":"line",t})),o("StackedLine",(function(e,t){return t.chart.type=e.fill?"area":"line",t.plotOptions={area:{stacking:"percent"},series:{stacking:"percent"}},t})),o("Bar",(function(e,t){return t.chart.type="column",t})),o("StackedBar",(function(e,t){return t.chart.type="column",t.plotOptions={column:{stacking:"percent"}},t})),o("HorizontalBar",(function(e,t){return t.chart.type="bar",t})),o("StackedHorizontalBar",(function(e,t){return t.chart.type="bar",t.plotOptions={bar:{stacking:"percent"}},t})),o("XY",(function(e,t){return!1===e.stroke?t.chart.type="scatter":t.chart.type=e.fill?"area":"line",t.xAxis.labels.enabled=!0,t})),o("Radar",(function(e,t){t.chart.polar=!0,t.chart.type="line",t.xAxis={categories:e.x_labels,tickmarkPlacement:"on",lineWidth:0},t.yAxis={gridLineInterpolation:"polygon",lineWidth:0,min:0,gridLineDashStyle:"ShortDash",gridLineColor:"#DDD"};for(var n=0;n<t.series.length;n++)t.series[n].pointPlacement="on";return t})),o("Pie",(function(e,t){t.chart.type="pie";for(var n=[],i=[],r=!1,a=0;a<t.series.length;a++){var l=t.series[a];if(1===l.data.length)n.unshift({name:l.name,color:l.color,borderColor:l.color,legendIndex:l.legendIndex,y:l.data[0]}),i.unshift({name:l.name,color:l.color,borderColor:l.color,y:l.data[0]});else{r=!0;for(var o=0,s=0,c=0;c<l.data.length;c++){var d=l.data[c].toString().split(".");s=Math.max(s,d[1]?d[1].length:0),o+=l.data[c],i.unshift({name:l.name,color:"rgba(0,0,0,0)",borderColor:l.color,y:l.data[c]})}n.unshift({name:l.name,color:l.color,borderColor:l.color,legendIndex:l.legendIndex,y:parseFloat(o.toFixed(s))})}}return t.tooltip={formatter:function(){return this.key+": "+this.y}},t.plotOptions={pie:{allowPointSelect:!r,cursor:r?null:"pointer",shadow:!1,center:["50%","50%"],dataLabels:{enabled:!1}}},t.series=[{name:" ",data:n,showInLegend:!0}],r&&t.series.push({name:" ",data:i,innerSize:"90%",showInLegend:!1}),t})),t};
|
||||
1
boards/default/python_skulpt/basic_e22099e5.js
Normal file
1
boards/default/python_skulpt/basic_e22099e5.js
Normal file
@@ -0,0 +1 @@
|
||||
var $builtinmodule=function(e){var i={__name__:new Sk.builtin.str("sprite")};return i.createBackground=new Sk.builtin.func((function(e){return e=Sk.ffi.remapToJs(e),Sk.ffi.remapToPy(SPRITE.CreateBackground(e))})),i.Sprite=Sk.misceval.buildClass(i,(function(e,i){i.__init__=new Sk.builtin.func((function(e,i,n,f,r){i=Sk.ffi.remapToJs(i),n=Sk.ffi.remapToJs(n),f=Sk.ffi.remapToJs(f),r=Sk.ffi.remapToJs(r),e.v$name=Sk.ffi.remapToPy(SPRITE.CreateASprite(i,n,f,r))})),i.show=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[i].show()})),i.hide=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[i].hide()})),i.enlarge=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i);SPRITE.sprites[n].enlarge(i)})),i.enlargeTo=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i);SPRITE.sprites[n].enlargeTo(i)})),i.expandTo=new Sk.builtin.func((function(e,i,n){var f=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i);return SPRITE.sprites[f].expandTo(i,n)})),i.move=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),SPRITE.sprites[n].move(i)})),i.moveTo=new Sk.builtin.func((function(e,i,n){var f=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),n=Sk.ffi.remapToJs(n),SPRITE.sprites[f].moveTo(i,n)})),i.slideTo=new Sk.builtin.func((function(e,i,n,f){var r=Sk.ffi.remapToJs(e.v$name);return i=Sk.ffi.remapToJs(i),n=Sk.ffi.remapToJs(n),f=Sk.ffi.remapToJs(f),SPRITE.sprites[r].slideTo(i,n,f)})),i.addX=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),SPRITE.sprites[n].addX(i)})),i.addY=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),SPRITE.sprites[n].addY(i)})),i.getX=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name),n=SPRITE.sprites[i];return Sk.ffi.remapToPy(n.x)})),i.getY=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name),n=SPRITE.sprites[i];return Sk.ffi.remapToPy(n.y)})),i.rotate=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),SPRITE.sprites[n].rotate(i)})),i.rotateTo=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),SPRITE.sprites[n].rotateTo(i)})),i.circleTo=new Sk.builtin.func((function(e,i,n){var f=Sk.ffi.remapToJs(e.v$name);return i=Sk.ffi.remapToJs(i),SPRITE.sprites[f].circleTo(i)})),i.hit=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name),f=Sk.ffi.remapToJs(i.v$name),r=SPRITE.sprites[n],t=SPRITE.sprites[f];return Sk.ffi.remapToPy(r.hit(t))})),i.outOfScreen=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name),n=SPRITE.sprites[i];return Sk.ffi.remapToPy(n.outOfScreen())})),i.mouseAction=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[n].mouseAction((()=>{Sk.misceval.callsim(i)}))})),i.isClicked=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name),n=SPRITE.sprites[i];return Sk.ffi.remapToPy(n.isDown)})),i.setScale=new Sk.builtin.func((function(e,i,n){var f=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[f].setScale(i,n)})),i.filterGray=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[i].filterGray()})),i.filterBrighter=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[i].filterBrighter()})),i.filterOrigin=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.sprites[i].filterOrigin()}))}),"Sprite",[]),i.Text=Sk.misceval.buildClass(i,(function(e,i){i.__init__=new Sk.builtin.func((function(e,i,n,f,r){i=Sk.ffi.remapToJs(i),n=Sk.ffi.remapToJs(n),f=Sk.ffi.remapToJs(f),r=Sk.ffi.remapToJs(r),e.v$name=Sk.ffi.remapToPy(SPRITE.CreateText(i,n,f,r))})),i.changeText=new Sk.builtin.func((function(e,i){var n=Sk.ffi.remapToJs(e.v$name);i=Sk.ffi.remapToJs(i),SPRITE.texts[n].changeText(i)})),i.show=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.texts[i].show()})),i.hide=new Sk.builtin.func((function(e){var i=Sk.ffi.remapToJs(e.v$name);SPRITE.texts[i].hide()}))}),"Text",[]),i.clearAllSprites=new Sk.builtin.func((function(){return Sk.ffi.remapToPy(SPRITE.ClearAllSprites())})),i.repeat=new Sk.builtin.func((function(e=new Function){SPRITE.Repeat((()=>{Sk.misceval.callsim(e)}))})),i.keyboardListener=new Sk.builtin.func((function(e,i=new Function){e=Sk.ffi.remapToJs(e),SPRITE.KeyboardListener(e,(()=>{Sk.misceval.callsim(i)}))})),i.isKeyboardHit=new Sk.builtin.func((function(e){return e=Sk.ffi.remapToJs(e),Sk.ffi.remapToPy(SPRITE.IsKeyboardHit(e))})),i.getTime=new Sk.builtin.func((function(){return Sk.ffi.remapToPy(Math.floor(SPRITE.timer/1e3))})),i.clearTimer=new Sk.builtin.func((function(){SPRITE.ClearTimer()})),i};
|
||||
@@ -142,5 +142,125 @@
|
||||
"2-2-3凯撒加密(ASCII码补充解密验证).mix": {
|
||||
"__file__": true,
|
||||
"__name__": "2-2-3凯撒加密(ASCII码补充解密验证).mix"
|
||||
},
|
||||
"北师大版教材示例代码": {
|
||||
"五下第一单元": {
|
||||
"P12鸡兔同笼.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "P12鸡兔同笼.mix"
|
||||
},
|
||||
"图1-14.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-14.mix"
|
||||
},
|
||||
"图1-20.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-20.mix"
|
||||
},
|
||||
"图1-4.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-4.mix"
|
||||
},
|
||||
"图1-7.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图1-7.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "五下第一单元"
|
||||
},
|
||||
"五下第二单元": {
|
||||
"图2-9.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图2-9.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "五下第二单元"
|
||||
},
|
||||
"五下第四单元": {
|
||||
"图4-19&21&22.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图4-19&21&22.mix"
|
||||
},
|
||||
"图4-3.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "图4-3.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "五下第四单元"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "北师大版教材示例代码"
|
||||
},
|
||||
"大同出版社-五年级": {
|
||||
"上册": {
|
||||
"第12课判断闰年.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第12课判断闰年.mix"
|
||||
},
|
||||
"第13课让计算机会数数1.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第13课让计算机会数数1.mix"
|
||||
},
|
||||
"第13课让计算机会数数2.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第13课让计算机会数数2.mix"
|
||||
},
|
||||
"第14课for循环.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第14课for循环.mix"
|
||||
},
|
||||
"第14课趣味数玩具.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第14课趣味数玩具.mix"
|
||||
},
|
||||
"第15课破译密码.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第15课破译密码.mix"
|
||||
},
|
||||
"第8课动物园购票.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第8课动物园购票.mix"
|
||||
},
|
||||
"第8课计算购书费.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第8课计算购书费.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "上册"
|
||||
},
|
||||
"下册": {
|
||||
"第12课网页排名算法.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第12课网页排名算法.mix"
|
||||
},
|
||||
"第1课比较交换找最大值.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第1课比较交换找最大值.mix"
|
||||
},
|
||||
"第2课选择排序(未要求代码).mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第2课选择排序(未要求代码).mix"
|
||||
},
|
||||
"第4课冒泡排序.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第4课冒泡排序.mix"
|
||||
},
|
||||
"第6课用算数求解鸡兔同笼.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第6课用算数求解鸡兔同笼.mix"
|
||||
},
|
||||
"第6课遍历求解鸡兔同笼.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第6课遍历求解鸡兔同笼.mix"
|
||||
},
|
||||
"第7课兔子增长算法.mix": {
|
||||
"__file__": true,
|
||||
"__name__": "第7课兔子增长算法.mix"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "下册"
|
||||
},
|
||||
"__file__": false,
|
||||
"__name__": "大同出版社-五年级"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>算力大比拼</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.display {
|
||||
font-size: 24px;
|
||||
margin: 20px 0;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 5px;
|
||||
min-height: 30px;
|
||||
}
|
||||
.button-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
button {
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
}
|
||||
button:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
button:disabled {
|
||||
background-color: #cccccc;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
#stopBtn {
|
||||
background-color: #f44336;
|
||||
}
|
||||
#clearBtn {
|
||||
background-color: #2196F3;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>算力大比拼</h1>
|
||||
|
||||
<div class="display" id="equation">准备开始...</div>
|
||||
<div class="display" id="result">-</div>
|
||||
<div class="display" id="timeElapsed">时间: 0.000秒</div>
|
||||
<div class="display" id="numberOfCalculations">计算次数: 0</div>
|
||||
|
||||
<div class="button-container">
|
||||
<button id="startBtn">开始</button>
|
||||
<button id="stopBtn" disabled>停止</button>
|
||||
<button id="clearBtn">清空</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
class Calculator {
|
||||
constructor() {
|
||||
this.equationElement = document.getElementById('equation');
|
||||
this.resultElement = document.getElementById('result');
|
||||
this.timeElapsedElement = document.getElementById('timeElapsed');
|
||||
this.numberOfCalculationsElement = document.getElementById('numberOfCalculations');
|
||||
this.startBtn = document.getElementById('startBtn');
|
||||
this.stopBtn = document.getElementById('stopBtn');
|
||||
this.clearBtn = document.getElementById('clearBtn');
|
||||
|
||||
this.running = false;
|
||||
this.startTime = 0;
|
||||
this.pausedTime = 0;
|
||||
this.totalElapsedTime = 0;
|
||||
this.numberOfCalculationsValue = 0;
|
||||
this.lastUpdateTime = 0;
|
||||
this.currentIndex = 0;
|
||||
|
||||
// 固定的四道题目表达式
|
||||
this.questionBank = [
|
||||
"72 + 36",
|
||||
"678 - 123",
|
||||
"16 * 12",
|
||||
"132 / 11"
|
||||
];
|
||||
|
||||
this.setupEventListeners();
|
||||
}
|
||||
|
||||
setupEventListeners() {
|
||||
this.startBtn.addEventListener('click', () => this.start());
|
||||
this.stopBtn.addEventListener('click', () => this.stop());
|
||||
this.clearBtn.addEventListener('click', () => this.clear());
|
||||
}
|
||||
|
||||
start() {
|
||||
if (this.running) return;
|
||||
|
||||
this.running = true;
|
||||
this.startBtn.disabled = true;
|
||||
this.stopBtn.disabled = false;
|
||||
|
||||
const now = performance.now();
|
||||
if (this.pausedTime > 0) {
|
||||
this.startTime = now - this.pausedTime;
|
||||
this.pausedTime = 0;
|
||||
} else {
|
||||
this.startTime = now;
|
||||
this.totalElapsedTime = 0;
|
||||
this.numberOfCalculationsValue = 0;
|
||||
}
|
||||
|
||||
this.lastUpdateTime = now;
|
||||
|
||||
this.calculateLoop();
|
||||
this.uiLoop();
|
||||
}
|
||||
|
||||
calculateLoop() {
|
||||
if (!this.running) return;
|
||||
|
||||
const batchSize = 999;
|
||||
for (let i = 0; i < batchSize; i++) {
|
||||
const equation = this.questionBank[this.currentIndex];
|
||||
const result = eval(equation);
|
||||
this.numberOfCalculationsValue++;
|
||||
this.currentIndex = (this.currentIndex + 1) % 4;
|
||||
}
|
||||
|
||||
requestAnimationFrame(() => this.calculateLoop());
|
||||
}
|
||||
|
||||
uiLoop() {
|
||||
if (!this.running) return;
|
||||
|
||||
const now = performance.now();
|
||||
this.totalElapsedTime = (now - this.startTime) / 1000;
|
||||
|
||||
const currentEquation = this.questionBank[this.currentIndex];
|
||||
this.equationElement.textContent = currentEquation;
|
||||
this.resultElement.textContent = eval(currentEquation);
|
||||
this.timeElapsedElement.textContent = `时间: ${this.totalElapsedTime.toFixed(3)}秒`;
|
||||
this.numberOfCalculationsElement.textContent = `计算次数: ${this.numberOfCalculationsValue}`;
|
||||
|
||||
// 每0.2秒更新一次UI
|
||||
setTimeout(() => this.uiLoop(), 200);
|
||||
}
|
||||
|
||||
stop() {
|
||||
if (!this.running) return;
|
||||
|
||||
this.running = false;
|
||||
this.startBtn.disabled = false;
|
||||
this.stopBtn.disabled = true;
|
||||
|
||||
this.pausedTime = performance.now() - this.startTime;
|
||||
}
|
||||
|
||||
clear() {
|
||||
this.stop();
|
||||
this.equationElement.textContent = '准备开始...';
|
||||
this.resultElement.textContent = '-';
|
||||
this.timeElapsedElement.textContent = '时间: 0.000秒';
|
||||
this.numberOfCalculationsValue = 0;
|
||||
this.numberOfCalculationsElement.textContent = '计算次数: 0';
|
||||
this.pausedTime = 0;
|
||||
this.totalElapsedTime = 0;
|
||||
this.currentIndex = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化计算器
|
||||
const calculator = new Calculator();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="variables_set" id="Q[{^|2^P.#[qb/nzvvw+" x="-554" y="-458"><field name="VAR">x</field><value name="VALUE"><block type="math_number" id=",r2=0Ew-`5OHTqkk/8(Y"><field name="NUM">0</field></block></value><next><block type="variables_set" id="bh]nH_HKP.94n}^E7w|6"><field name="VAR">y</field><value name="VALUE"><block type="math_number" id="~KE)pAJjx:`[F{|KhHIW"><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="cx!M$HWg[9H:^GFh4Ng0"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=",Hxl2[S7SL4$=/T:-6A-"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="o(4zw(tA6+5V$U{]v7-!"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="xgyV{S`DGnT|M4y|s~6_"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="Hw8SrK_u#KH,tq?|9ImR"><field name="NUM">35</field></block></value></block></value><statement name="DO"><block type="variables_set" id="KL!u.juZ2)q?!Do1taG4"><field name="VAR">y</field><value name="VALUE"><block type="math_arithmetic" id="tt}!Y]*:kVSOXr[bvATU"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="^y6TPe#bo.1D50=M+9fI"><field name="NUM">35</field></shadow></value><value name="B"><shadow type="math_number" id="izmGz+)O0n1;)gL7lSbR"><field name="NUM">1</field></shadow><block type="variables_get" id="w;tiXN9/QL2RSY(uh]8v"><field name="VAR">x</field></block></value></block></value><next><block type="controls_if" id="`;5kzi*SV`fI!?xD,hPg"><value name="IF0"><block type="logic_compare" id="4l0]hlo(jI0X@j{*rQz|"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="qoBJ4E$!BpaRc),JvQ9^"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="QTDk(L+j)n7/jMP,wNam"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="PqH9B;xe7OK`8zwbQUc$"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="t~[T=l]LgMW=e-YG^V6|"><field name="NUM">2</field></shadow></value><value name="B"><shadow type="math_number" id="w3GU[BlUNUTr{V=gl8WR"><field name="NUM">1</field></shadow><block type="variables_get" id="I0ZAkq!mOIRa4{@+$=J`"><field name="VAR">x</field></block></value></block></value><value name="B"><shadow type="math_number" id="vBg5=9nqm4$h(Uk.vguS"><field name="NUM">1</field></shadow><block type="math_arithmetic" id="Df=/Dd5xqoJOnaT95@Px"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="sfiVAcFZSNU}0hSmn2r."><field name="NUM">4</field></shadow></value><value name="B"><shadow type="math_number" id="h!UB$?mXT5y+Z?:3^YJ#"><field name="NUM">1</field></shadow><block type="variables_get" id="Zg$n*UFkg5C/N:M?:njK"><field name="VAR">y</field></block></value></block></value></block></value><value name="B"><block type="math_number" id="^wX*uGffqf8i$Q6ZIY4Y"><field name="NUM">94</field></block></value></block></value><statement name="DO0"><block type="inout_print" id=",pA*g!{1anxUYz/[ZFwO"><value name="VAR"><shadow type="text" id="8HEvMfvowik#l3R!}:KK"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="g2}g(EasbzlHYC-PF3:S"><field name="VAR">x</field></block></value><next><block type="inout_print" id="CZ/{jnIa[NMA)kz#Y+iw"><value name="VAR"><shadow type="text" id="5=TXE8`^C~RW[0WhtMJ,"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="fN~v2G4}?V9_fi_#sG@5"><field name="VAR">y</field></block></value></block></next></block></statement><next><block type="variables_set" id="58WXOKX(TL,uW_^FIR?:"><field name="VAR">x</field><value name="VALUE"><block type="math_arithmetic" id="#4J]frp,D~QCX]7u1~cu"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="oKVBE-wX8j:LE-AQ7qJe"><field name="NUM">1</field></shadow><block type="variables_get" id=")wigfGS3B@OwlFrriU(5"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="~VnxlA9,3R)w;0CMK2JL"><field name="NUM">1</field></shadow></value></block></value></block></next></block></next></block></statement></block></next></block></next></block></xml><config>{}</config><code>eCA9IDAKeSA9IDAKd2hpbGUgeCA8PSAzNToKICAgIHkgPSAzNSAtIHgKICAgIGlmIDIgKiB4ICsgNCAqIHkgPT0gOTQ6CiAgICAgICAgcHJpbnQoeCkKICAgICAgICBwcmludCh5KQogICAgeCA9IHggKyAxCg==</code>
|
||||
@@ -0,0 +1,51 @@
|
||||
import itertools
|
||||
import time
|
||||
|
||||
def calculate(numbers, operators):
|
||||
# 计算四个数与三个运算符的组合是否能得到24
|
||||
formula = f"{numbers[0]} {operators[0]} {numbers[1]} {operators[1]} {numbers[2]} {operators[2]} {numbers[3]}"
|
||||
result = eval(formula)
|
||||
if result == 24:
|
||||
return True, formula
|
||||
else:
|
||||
return False, result
|
||||
|
||||
def solve(nums):
|
||||
start_time = time.time() # 记录开始时间
|
||||
count = 0 # 记录枚举次数
|
||||
|
||||
|
||||
# 枚举三个运算符的所有排列组合(有重复)
|
||||
for ops in itertools.product(["+", "-", "*", "/"], repeat=3):
|
||||
count += 1
|
||||
success, result = calculate(nums, ops)
|
||||
if success:
|
||||
print(f"第{count}次枚举成功:{nums[0]} {ops[0]} {nums[1]} {ops[1]} {nums[2]} {ops[2]} {nums[3]} = 24")
|
||||
print(f"共枚举{count}次,耗时{time.time()-start_time:.3f}秒。")
|
||||
return
|
||||
else:
|
||||
print(f"第{count}次枚举失败:{nums[0]} {ops[0]} {nums[1]} {ops[1]} {nums[2]} {ops[2]} {nums[3]} = {result}")
|
||||
|
||||
print("无解")
|
||||
print(f"共枚举{count}次,耗时{time.time()-start_time:.3f}秒。")
|
||||
|
||||
def get_numbers_from_user():
|
||||
numbers = []
|
||||
for i in range(4):
|
||||
while True:
|
||||
try:
|
||||
num = int(input(f"请输入第{i+1}个数字:"))
|
||||
numbers.append(num)
|
||||
break
|
||||
except ValueError:
|
||||
print("输入错误,请重新输入整数。")
|
||||
return numbers
|
||||
|
||||
def main():
|
||||
print("欢迎使用24点计算器!")
|
||||
numbers = get_numbers_from_user()
|
||||
print("开始求解...")
|
||||
solve(numbers)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="algorithm_prepare" id="Q1A}!ZGk4-({1/MVt5q^" x="-576" y="-199"><next><block type="algorithm_add_school" id="H_-AT-fc~jR|^no@.Yp*"><next><block type="controls_whileUntil" id="9#jHeZe#rg)jLg9PPAM8"><field name="MODE">UNTIL</field><value name="BOOL"><shadow type="logic_boolean" id="ux}36k8+@mu3#|QKX@_X"><field name="BOOL">TRUE</field></shadow><block type="algorithm_no_left" id="aFd$MsSogL#Boz_]3X}y"></block></value><statement name="DO"><block type="algorithm_find_path" id="w2F*D0[MC_Hfc!yu?R?O"><next><block type="controls_if" id="]5qP:)!^})p}@I~Hp{u="><mutation else="1"></mutation><value name="IF0"><block type="algorithm_new_path" id="!w|k96G1w)O$D3XOe}Sc"></block></value><statement name="DO0"><block type="algorithm_set_path" id="anI+j-I+#imA2=yLMco2"><next><block type="algorithm_add_path" id="b2cPfKNZYvJl07B1vB_R"></block></next></block></statement><statement name="ELSE"><block type="algorithm_del_path" id="!B$=EEYh_`}sS208p|,?"><next><block type="algorithm_return_path" id="r1PkkO8vp}O$=WPN[$by"></block></next></block></statement></block></next></block></statement><next><block type="algorithm_print_path" id="B,z[T:?RB|94Dp=Ru?4S"></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHNwcml0ZQppbXBvcnQgcmFuZG9tCmltcG9ydCB0aW1lCgoKZyA9IFtbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwxLDAsMCwwLDAsMCwwXSwgWzAsMCwwLDEsMCwwLDEsMCwwLDBdLCBbMCwxLDEsMCwxLDEsMCwwLDAsMF0sIFswLDAsMCwxLDAsMCwwLDEsMCwwXSwgWzAsMCwwLDEsMCwwLDEsMSwwLDBdLCBbMCwwLDEsMCwwLDEsMCwxLDAsMF0sIFswLDAsMCwwLDEsMSwxLDAsMCwwXV0KbWFyayA9IFtbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwwLDAsMCwwLDAsMCwwXSwgWzAsMCwwLDAsMCwwLDAsMCwwLDBdLCBbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwwLDAsMCwwLDAsMCwwXSwgWzAsMCwwLDAsMCwwLDAsMCwwLDBdLCBbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwwLDAsMCwwLDAsMCwwXV0KdmlzID0gWzAsMSwwLDAsMCwwLDAsMCwwXQpwb3NpdGlvbiA9IFtbMCwgMF0sIFsyMDAsIDIwMF0sIFsyNTAsIDYwXSwgWzMyMCwgMjAwXSwgWzI4MCwgMzgwXSwgWzQ3MCwgMjUwXSwgWzY3MCwgOTBdLCBbNjUwLCAzNDBdXQpzcHJpdGUuY2xlYXJBbGxTcHJpdGVzKCkKc3ByaXRlLmNyZWF0ZUJhY2tncm91bmQoJ21hcF94dWV4aWFvJykKCmhvdXNlID0gWyBzcHJpdGUuU3ByaXRlKCdtYXJrJywgMTUwLCAzODApLAogICAgc3ByaXRlLlNwcml0ZSgnU2Nob29sJywgMTE1LCAxOTUpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2UyNScsIDI2NCwgNjcpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2UzNicsIDMyMCwgMjAwKSwKICAgIHNwcml0ZS5TcHJpdGUoJ0hvdXNlNDcnLCAyOTAsIDM3MSksCiAgICBzcHJpdGUuU3ByaXRlKCdIb3VzZTI1JywgNDc5LCAyMzMpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2UzNicsIDY3NCwgOTYpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2U0NycsIDY0MiwgMzE4KQpdCmZvciBpIGluIGhvdXNlOgogICAgaS5oaWRlKCkKcGF0aCA9IFsxXQpjYXIgPSBzcHJpdGUuU3ByaXRlKCdjYXInLCBwb3NpdGlvblsxXVswXSwgcG9zaXRpb25bMV1bMV0pCmhvdXNlWzFdLnNob3coKQpjYXIubm93UG9zID0gMQpkZWYgZHJpdmUobik6CiAgICBpZiBnW2Nhci5ub3dQb3NdW25dPT0xOgogICAgICAgIGNhci5zbGlkZVRvKHBvc2l0aW9uW25dWzBdLCBwb3NpdGlvbltuXVsxXSwgMSkKICAgICAgICBjYXIubm93UG9zID0gbgogICAgZWxzZToKICAgICAgICBwcmludCgn56e75Yqo5aSx6LSl77yB56iL5bqP5pyJ6K+v77yBJykKICAgICAgICBleGl0KCkKd2hpbGUgbm90IGxlbihwYXRoKSA9PSA3OgogICAgZiA9IHBhdGhbKGxlbihwYXRoKSAtIDEpXQogICAgZmxhZyA9IDAKICAgIGZvciBfbXlfdmFyaWFibGUgaW4gWzYsNSw0LDMsMiwxLDBdOgogICAgICAgIGlmIHZpc1tfbXlfdmFyaWFibGUrMV0gPT0gMCBhbmQgZ1tmXVtfbXlfdmFyaWFibGUrMV0gPT0gMToKICAgICAgICAgICAgaWYgbWFya1tmXVtfbXlfdmFyaWFibGUrMV0gPT0gMDoKICAgICAgICAgICAgICAgIGZsYWcgPSAxCiAgICAgICAgICAgICAgICBicmVhawogICAgaWYgZmxhZyA9PSAxOgogICAgICAgIG1hcmtbZl1bX215X3ZhcmlhYmxlKzFdID0gMQogICAgICAgIHZpc1tfbXlfdmFyaWFibGUrMV0gPSAxCiAgICAgICAgcGF0aC5hcHBlbmQoX215X3ZhcmlhYmxlKzEpCiAgICAgICAgZHJpdmUocGF0aFtsZW4ocGF0aCkgLSAxXSkKICAgICAgICBob3VzZVtfbXlfdmFyaWFibGUrMV0uc2hvdygpCiAgICBlbHNlOgogICAgICAgIGRlbCBwYXRoW2xlbihwYXRoKSAtIDFdCiAgICAgICAgaG91c2VbMF0uc2hvdygpCiAgICAgICAgdGltZS5zbGVlcCgwLjUpCiAgICAgICAgaG91c2VbMF0uaGlkZSgpCiAgICAgICAgaG91c2VbZl0uaGlkZSgpCiAgICAgICAgZHJpdmUocGF0aFtsZW4ocGF0aCkgLSAxXSkKICAgICAgICBmb3IgaSBpbiByYW5nZSg3KToKICAgICAgICAgICAgbWFya1tmXVtpKzFdID0gMAogICAgICAgICAgICB2aXNbZl0gPSAwCm5hbWUgPSBbIiIsIuWtpuagoSIsIuWwj+aZuuWutiIsIuWwj+aso+WutiIsIuWwj+aAneWutiIsIuWwj+enkeWutiIsIui0nei0neWutiIsIuS5kOS5kOWutiJdCnJlcyA9ICIiCmZvciBpIGluIHBhdGg6CiAgICByZXMgPSByZXMgKyBuYW1lW2ldICsgIi0iCnByaW50KHJlc1s6LTFdKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="algorithm_prepare2" id="_3_z5rV/`Pdr*hP-)Xa2" x="-784" y="-288"><next><block type="algorithm_add_school" id="wsFTF=muR{XtWV=H`!/*"><next><block type="controls_whileUntil" id="^}ObWXPT!`TrdgJyLtsK"><field name="MODE">UNTIL</field><value name="BOOL"><shadow type="logic_boolean" id="}Z:lvis(:X=/Uo6^41Wp"><field name="BOOL">TRUE</field></shadow><block type="algorithm_no_left" id="*#*gsTDgU+Um~68IaMpN"></block></value><statement name="DO"><block type="algorithm_find_path" id="J[RVwbXs02JfTS)g,cCS"><next><block type="controls_if" id="g^jSZ@uGU.9KWki0ciro"><mutation else="1"></mutation><value name="IF0"><block type="algorithm_new_path" id="U70J_~Lewo#]@D}UEi`o"></block></value><statement name="DO0"><block type="algorithm_set_path" id="QTv--I=foaU*?=)I8vPb"><next><block type="algorithm_add_path" id="WaNNDwR=,bb|w4gz]:P,"></block></next></block></statement><statement name="ELSE"><block type="controls_if" id="jb`wC@t!9LWFn.N_DWQE"><mutation else="1"></mutation><value name="IF0"><block type="algorithm_current_school" id="p;{CEW9G6`0tHX=x@7nV"></block></value><statement name="DO0"><block type="algorithm_no_path" id="XqDg(vPlNK`s`}($f+TR"><next><block type="controls_end_program" id="`uEStOe7h$[TqJ;4`4sU"></block></next></block></statement><statement name="ELSE"><block type="algorithm_del_path" id="c.Jp=h@n()/j}OcUm-NU"><next><block type="algorithm_return_path" id="e3Mxb|rodCO[DqXB-RPE"></block></next></block></statement></block></statement></block></next></block></statement><next><block type="algorithm_print_path" id="{6-iUPPsX/9;f~;g?^G("></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHNwcml0ZQppbXBvcnQgcmFuZG9tCmltcG9ydCB0aW1lCgoKZyA9IFtbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwxLDAsMCwwLDAsMCwwXSwgWzAsMCwwLDEsMCwwLDEsMCwwLDBdLCBbMCwxLDEsMCwxLDAsMCwwLDAsMF0sIFswLDAsMCwxLDAsMCwwLDEsMCwwXSwgWzAsMCwwLDEsMCwwLDAsMSwwLDBdLCBbMCwwLDEsMCwwLDAsMCwxLDAsMF0sIFswLDAsMCwwLDEsMSwxLDAsMCwwXV0KbWFyayA9IFtbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwwLDAsMCwwLDAsMCwwXSwgWzAsMCwwLDAsMCwwLDAsMCwwLDBdLCBbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwwLDAsMCwwLDAsMCwwXSwgWzAsMCwwLDAsMCwwLDAsMCwwLDBdLCBbMCwwLDAsMCwwLDAsMCwwLDAsMF0sIFswLDAsMCwwLDAsMCwwLDAsMCwwXV0KdmlzID0gWzAsMSwwLDAsMCwwLDAsMCwwXQpwb3NpdGlvbiA9IFtbMCwgMF0sIFsyMDAsIDIwMF0sIFsyNTAsIDYwXSwgWzMyMCwgMjAwXSwgWzI4MCwgMzgwXSwgWzQ3MCwgMjUwXSwgWzY3MCwgOTBdLCBbNjUwLCAzNDBdXQpzcHJpdGUuY2xlYXJBbGxTcHJpdGVzKCkKc3ByaXRlLmNyZWF0ZUJhY2tncm91bmQoJ21hcF94dWV4aWFvJykKCmhvdXNlID0gWyBzcHJpdGUuU3ByaXRlKCdtYXJrJywgMTUwLCAzODApLAogICAgc3ByaXRlLlNwcml0ZSgnU2Nob29sJywgMTE1LCAxOTUpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2UyNScsIDI2NCwgNjcpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2UzNicsIDMyMCwgMjAwKSwKICAgIHNwcml0ZS5TcHJpdGUoJ0hvdXNlNDcnLCAyOTAsIDM3MSksCiAgICBzcHJpdGUuU3ByaXRlKCdIb3VzZTI1JywgNDc5LCAyMzMpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2UzNicsIDY3NCwgOTYpLAogICAgc3ByaXRlLlNwcml0ZSgnSG91c2U0NycsIDY0MiwgMzE4KQpdCmJhcnJpY2FkZSA9IHNwcml0ZS5TcHJpdGUoJ2JhcnJpY2FkZScsIDU3MCwgMTcwKQpiYXJyaWNhZGUuZW5sYXJnZVRvKDEwMCkKZm9yIGkgaW4gaG91c2U6CiAgICBpLmhpZGUoKQpwYXRoID0gWzFdCmNhciA9IHNwcml0ZS5TcHJpdGUoJ2NhcicsIHBvc2l0aW9uWzFdWzBdLCBwb3NpdGlvblsxXVsxXSkKaG91c2VbMV0uc2hvdygpCmNhci5ub3dQb3MgPSAxCmRlZiBkcml2ZShuKToKICAgIGlmIGdbY2FyLm5vd1Bvc11bbl09PTE6CiAgICAgICAgY2FyLnNsaWRlVG8ocG9zaXRpb25bbl1bMF0sIHBvc2l0aW9uW25dWzFdLCAxKQogICAgICAgIGNhci5ub3dQb3MgPSBuCiAgICBlbHNlOgogICAgICAgIHByaW50KCfnp7vliqjlpLHotKXvvIHnqIvluo/mnInor6/vvIEnKQogICAgICAgIGV4aXQoKQp3aGlsZSBub3QgbGVuKHBhdGgpID09IDc6CiAgICBmID0gcGF0aFsobGVuKHBhdGgpIC0gMSldCiAgICBmbGFnID0gMAogICAgZm9yIF9teV92YXJpYWJsZSBpbiBbNiw1LDQsMywyLDEsMF06CiAgICAgICAgaWYgdmlzW19teV92YXJpYWJsZSsxXSA9PSAwIGFuZCBnW2ZdW19teV92YXJpYWJsZSsxXSA9PSAxOgogICAgICAgICAgICBpZiBtYXJrW2ZdW19teV92YXJpYWJsZSsxXSA9PSAwOgogICAgICAgICAgICAgICAgZmxhZyA9IDEKICAgICAgICAgICAgICAgIGJyZWFrCiAgICBpZiBmbGFnID09IDE6CiAgICAgICAgbWFya1tmXVtfbXlfdmFyaWFibGUrMV0gPSAxCiAgICAgICAgdmlzW19teV92YXJpYWJsZSsxXSA9IDEKICAgICAgICBwYXRoLmFwcGVuZChfbXlfdmFyaWFibGUrMSkKICAgICAgICBkcml2ZShwYXRoW2xlbihwYXRoKSAtIDFdKQogICAgICAgIGhvdXNlW19teV92YXJpYWJsZSsxXS5zaG93KCkKICAgIGVsc2U6CiAgICAgICAgaWYgZiA9PSAxOgogICAgICAgICAgICBwcmludCgn5rKh5pyJ56ym5ZCI5p2h5Lu255qE6Lev57q/JykKICAgICAgICAgICAgZXhpdCgpCiAgICAgICAgZWxzZToKICAgICAgICAgICAgZGVsIHBhdGhbbGVuKHBhdGgpIC0gMV0KICAgICAgICAgICAgaG91c2VbMF0uc2hvdygpCiAgICAgICAgICAgIHRpbWUuc2xlZXAoMC41KQogICAgICAgICAgICBob3VzZVswXS5oaWRlKCkKICAgICAgICAgICAgaG91c2VbZl0uaGlkZSgpCiAgICAgICAgICAgIGRyaXZlKHBhdGhbbGVuKHBhdGgpIC0gMV0pCiAgICAgICAgICAgIGZvciBpIGluIHJhbmdlKDcpOgogICAgICAgICAgICAgICAgbWFya1tmXVtpKzFdID0gMAogICAgICAgICAgICAgICAgdmlzW2ZdID0gMApuYW1lID0gWyIiLCLlrabmoKEiLCLlsI/mmbrlrrYiLCLlsI/mrKPlrrYiLCLlsI/mgJ3lrrYiLCLlsI/np5HlrrYiLCLotJ3otJ3lrrYiLCLkuZDkuZDlrrYiXQpyZXMgPSAiIgpmb3IgaSBpbiBwYXRoOgogICAgcmVzID0gcmVzICsgbmFtZVtpXSArICItIgpwcmludChyZXNbOi0xXSkK</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="variables_set" id="I0J=~!p)uv*_[]z3m#?~" x="-774" y="-177"><field name="VAR">x</field><value name="VALUE"><block type="math_number" id="M3:Mb+{$K7jVY7]vbyyd"><field name="NUM">1500</field></block></value><next><block type="controls_whileUntil" id=",i1MK}z/;Wl!;*Idu15N"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="yX5{Zt5ylLSvfSz;z7]3"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="c]-su8]OlY|c/r.1hVvz"><field name="OP">GTE</field><value name="A"><block type="variables_get" id="4*xtjumb4s=d0+l{;SLU"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="SGp8o/;G=]Qiq$GhHG7L"><field name="NUM">0</field></block></value></block></value><statement name="DO"><block type="controls_if" id="O[Dk#l{NIRtwKatSldk?"><value name="IF0"><block type="logic_compare" id="=Ro7mF{()gKb@n!LTz-j"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="C/0c7Ghvtcb6E_[uEYJe"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="WrQ+LsLXjVyuHI-qH85L"><field name="NUM">1</field></shadow><block type="variables_get" id="^a8ra|?k]*79anx+L:.o"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="jU75i;r!w)d-Q[TcPuXx"><field name="NUM">3</field></shadow></value></block></value><value name="B"><block type="math_number" id="*a*YQp?G_Gne(aGkEpu."><field name="NUM">2</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="]h7:;|Lb3LWdG/xSM+Ib"><value name="IF0"><block type="logic_compare" id="yoJBpcxfhybuV34R1f|M"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="y7`VP*ma+G~nJiP@xL2k"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="WrQ+LsLXjVyuHI-qH85L"><field name="NUM">1</field></shadow><block type="variables_get" id=",zGj)w;wYiDKdXA`gZ1,"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="/:lL87wDAtK}YBa2ERH|"><field name="NUM">5</field></shadow></value></block></value><value name="B"><block type="math_number" id="bIL{#dKUjFH3});C!Hoa"><field name="NUM">4</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="/qCm!UW{np}vZECpGf!J"><value name="IF0"><block type="logic_compare" id="6Qe~nfI3yGZFZcEn!QY*"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="D^7!W:r[FfSc0)cf@=1`"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="WrQ+LsLXjVyuHI-qH85L"><field name="NUM">1</field></shadow><block type="variables_get" id="a@Q+ZRk/#(d#Xv6l3woW"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="EhegAay5M61h6ZyGH_J`"><field name="NUM">7</field></shadow></value></block></value><value name="B"><block type="math_number" id="12sr-_M()cmwR1(q68o2"><field name="NUM">6</field></block></value></block></value><statement name="DO0"><block type="inout_print" id="xOpnJuBN}U#2?k137,])"><value name="VAR"><shadow type="text" id="wNjMbh=--|9-Cl+X*k~i"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="conH#/1u*4d7#Dw}q(vd"><field name="VAR">x</field></block></value></block></statement></block></statement></block></statement><next><block type="variables_set" id="*SGJC{:2jzE)(0yNA7vC"><field name="VAR">x</field><value name="VALUE"><block type="math_arithmetic" id="R_}|c{V6:cSb~sk/g#v`"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="OGq[G=v2TR0sLi;da?j."><field name="NUM">1</field></shadow><block type="variables_get" id="u#~5t8Cj0~+cA`^Z;E86"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="r)g0g=V]PEuOgo0Gvqs("><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement></block></next></block></xml><config>{}</config><code>eCA9IDE1MDAKd2hpbGUgeCA+PSAwOgogICAgaWYgeCAlIDMgPT0gMjoKICAgICAgICBpZiB4ICUgNSA9PSA0OgogICAgICAgICAgICBpZiB4ICUgNyA9PSA2OgogICAgICAgICAgICAgICAgcHJpbnQoeCkKICAgIHggPSB4IC0gMQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="variables_set" id="I0J=~!p)uv*_[]z3m#?~" x="-774" y="-177"><field name="VAR">x</field><value name="VALUE"><block type="math_number" id="M3:Mb+{$K7jVY7]vbyyd"><field name="NUM">1100</field></block></value><next><block type="controls_whileUntil" id=",i1MK}z/;Wl!;*Idu15N"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="yX5{Zt5ylLSvfSz;z7]3"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="c]-su8]OlY|c/r.1hVvz"><field name="OP">GTE</field><value name="A"><block type="variables_get" id="4*xtjumb4s=d0+l{;SLU"><field name="VAR">x</field></block></value><value name="B"><block type="math_number" id="SGp8o/;G=]Qiq$GhHG7L"><field name="NUM">1000</field></block></value></block></value><statement name="DO"><block type="controls_if" id="O[Dk#l{NIRtwKatSldk?"><value name="IF0"><block type="logic_compare" id="=Ro7mF{()gKb@n!LTz-j"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="C/0c7Ghvtcb6E_[uEYJe"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="WrQ+LsLXjVyuHI-qH85L"><field name="NUM">1</field></shadow><block type="variables_get" id="^a8ra|?k]*79anx+L:.o"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="jU75i;r!w)d-Q[TcPuXx"><field name="NUM">3</field></shadow></value></block></value><value name="B"><block type="math_number" id="*a*YQp?G_Gne(aGkEpu."><field name="NUM">2</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="]h7:;|Lb3LWdG/xSM+Ib"><value name="IF0"><block type="logic_compare" id="yoJBpcxfhybuV34R1f|M"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="y7`VP*ma+G~nJiP@xL2k"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="WrQ+LsLXjVyuHI-qH85L"><field name="NUM">1</field></shadow><block type="variables_get" id=",zGj)w;wYiDKdXA`gZ1,"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="/:lL87wDAtK}YBa2ERH|"><field name="NUM">5</field></shadow></value></block></value><value name="B"><block type="math_number" id="bIL{#dKUjFH3});C!Hoa"><field name="NUM">4</field></block></value></block></value><statement name="DO0"><block type="controls_if" id="/qCm!UW{np}vZECpGf!J"><value name="IF0"><block type="logic_compare" id="6Qe~nfI3yGZFZcEn!QY*"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="D^7!W:r[FfSc0)cf@=1`"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="WrQ+LsLXjVyuHI-qH85L"><field name="NUM">1</field></shadow><block type="variables_get" id="a@Q+ZRk/#(d#Xv6l3woW"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="EhegAay5M61h6ZyGH_J`"><field name="NUM">7</field></shadow></value></block></value><value name="B"><block type="math_number" id="12sr-_M()cmwR1(q68o2"><field name="NUM">6</field></block></value></block></value><statement name="DO0"><block type="inout_print" id="xOpnJuBN}U#2?k137,])"><value name="VAR"><shadow type="text" id="wNjMbh=--|9-Cl+X*k~i"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="conH#/1u*4d7#Dw}q(vd"><field name="VAR">x</field></block></value></block></statement></block></statement></block></statement><next><block type="variables_set" id="*SGJC{:2jzE)(0yNA7vC"><field name="VAR">x</field><value name="VALUE"><block type="math_arithmetic" id="R_}|c{V6:cSb~sk/g#v`"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="OGq[G=v2TR0sLi;da?j."><field name="NUM">1</field></shadow><block type="variables_get" id="u#~5t8Cj0~+cA`^Z;E86"><field name="VAR">x</field></block></value><value name="B"><shadow type="math_number" id="r)g0g=V]PEuOgo0Gvqs("><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement></block></next></block></xml><config>{}</config><code>eCA9IDExMDAKd2hpbGUgeCA+PSAxMDAwOgogICAgaWYgeCAlIDMgPT0gMjoKICAgICAgICBpZiB4ICUgNSA9PSA0OgogICAgICAgICAgICBpZiB4ICUgNyA9PSA2OgogICAgICAgICAgICAgICAgcHJpbnQoeCkKICAgIHggPSB4IC0gMQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 2.0 rc4" board="Python 3 Lite@Python 3 Lite"><block type="algorithm_prepare_2_1" id="6abWugM^=)pvv=~7i{QC" x="-667" y="-199"><next><block type="controls_whileUntil" id="]]}T}0.@?Za[X6M?3hwO"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="jq~eP(IMhA83e2UoyMr$"><field name="BOOL">TRUE</field></shadow><block type="algorithm_not_home" id=")uIoZfpT+:mL,DN!c(Tz"></block></value><statement name="DO"><block type="algorithm_move_recent" id="[mw#rR5[zx1fD-CBS0K$"></block></statement><next><block type="algorithm_print_path2" id="SfeYjf+rovZBE@!WekkS"></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKaW1wb3J0IHNwcml0ZQoKCmcgPSBbWzEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwXSxbMTAwMDAsMTAwMDAsNTAwLDMwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMF0sWzEwMDAwLDUwMCwxMDAwMCwxMDAwMCwxMDAsMTAwMDAsMTAwMDAsMTAwMDAsMTAwMDAsMTAwMDAsMTAwMDBdLFsxMDAwMCwzMDAsMTAwMDAsMTAwMDAsNDAwLDMwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMF0sWzEwMDAwLDEwMDAwLDEwMCw0MDAsMTAwMDAsMTAwMDAsMjAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwXSxbMTAwMDAsMTAwMDAsMTAwMDAsMzAwLDEwMDAwLDEwMDAwLDEwMCwyMDAsMTAwMDAsMTAwMDAsMTAwMDBdLFsxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwyMDAsMTAwLDEwMDAwLDEwMDAwLDEwMCwxMDAwMCwxMDAwMF0sWzEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDEwMDAwLDIwMCwxMDAwMCwxMDAwMCwxMDAsMTAwMDAsMTAwMDBdLFsxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAwMCwxMDAsMTAwLDEwMDAwLDEwMDAwLDEwMDAwXV0Kbm93PTEKbGFzdD0xCnBhdGg9W10KcGF0aC5hcHBlbmQoMSkKbmFtZSA9IFsiIiwi5bCP5oCd5a62Iiwi6ZO26KGMIiwi6YKu5bGAIiwi6aSQ5Y6FIiwi5Lmm5bqXIiwi5Yy76ZmiIiwi6LaF5biCIiwi5bCP56eR5a62Il0KcG9zaXRpb24gPSBbWzAsIDBdLCBbNjAsIDMyMF0sIFs1MTAsIDM5MF0sIFsyNDAsIDIwMF0sIFs3NTAsIDMzMF0sIFs0MTAsIDkwXSwgWzU0MCwgMTkwXSwgWzU1MCwgMzBdLCBbNzIwLCAxMjBdXQpzcHJpdGUuY2xlYXJBbGxTcHJpdGVzKCkKc3ByaXRlLmNyZWF0ZUJhY2tncm91bmQoJ21hcF9zaV9rZScpCnN0dSA9IHNwcml0ZS5TcHJpdGUoJ2dpcmwnLCA2MCwgMzIwKQpzdHUuZW5sYXJnZVRvKDEwMCkKdGltZS5zbGVlcCgxKQoKd2hpbGUgbmFtZVtub3ddICE9ICflsI/np5HlrrYnOgogICAgdG1wPTEwMDAwCiAgICBmb3IgaSBpbiByYW5nZSgwLCBsZW4oZyksIDEpOgogICAgICAgIGlmIGdbbm93XVtpXTx0bXAgYW5kIGkhPWxhc3Q6CiAgICAgICAgICAgIG5leHQ9aQogICAgICAgICAgICB0bXA9Z1tub3ddW2ldCiAgICBzdHUuc2xpZGVUbyhwb3NpdGlvbltuZXh0XVswXSwgcG9zaXRpb25bbmV4dF1bMV0sIDEpCiAgICB0aW1lLnNsZWVwKDAuNSkKICAgIHBhdGguYXBwZW5kKG5leHQpCiAgICBsYXN0PW5vdwogICAgbm93PW5leHQKICAgIGlmIGxlbihwYXRoKT42OgogICAgICAgIHByaW50KCLot6/nur/plJnkubHvvIHnqIvluo/mnInor6/vvIEiKQogICAgICAgIGV4aXQoKQpyZXMgPSAiIgpmb3IgaSBpbiBwYXRoOgogICAgcmVzID0gcmVzICsgbmFtZVtpXSArICLihpIiCnByaW50KHJlc1s6LTFdKQo=</code>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="-R?$,g?yY$eWQQ1yvnIw" x="-422" y="-51"><field name="VAR">year</field><value name="VALUE"><block type="inout_type_input" id="5Q.H$;P/hkT~(RO8)0}="><field name="DIR">int</field><value name="VAR"><shadow type="text" id=")bt[ALwgSd2(F;pH4T3s"><field name="TEXT">请输入一个年份:</field></shadow></value></block></value><next><block type="controls_if" id="2p0@;6}`HRfsK0@4RoHB"><mutation elseif="1" else="1"></mutation><value name="IF0"><block type="logic_operation" id="?~$/(V?#,{=QF~AcqFq7"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="TPdZ$XVif=,])!LX}T5Q"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="H8$P|zeahVw(sT}ztjLf"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="uM_c/6Z*f*KaGT,+=iS#"><field name="NUM">1</field></shadow><block type="variables_get" id="Oqlzy2#{#R0D~KzAFuA]"><field name="VAR">year</field></block></value><value name="B"><shadow type="math_number" id="3CDuh`b{j).}cqi0i$p}"><field name="NUM">4</field></shadow></value></block></value><value name="B"><block type="math_number" id="$W1q#gi]F[9Y=|*Lh^rN"><field name="NUM">0</field></block></value></block></value><value name="B"><block type="logic_compare" id="yFV`r?JS~kh`p?YRZ:,*"><field name="OP">NEQ</field><value name="A"><block type="math_arithmetic" id="y5vq,aq@tBw_.Ojt)TU2"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="uM_c/6Z*f*KaGT,+=iS#"><field name="NUM">1</field></shadow><block type="variables_get" id="e2s!76dOm+~f.nKru0W)"><field name="VAR">year</field></block></value><value name="B"><shadow type="math_number" id="PQ2I?UkyR7?Ja.G8a@b,"><field name="NUM">100</field></shadow></value></block></value><value name="B"><block type="math_number" id="n~tjsK*Bv:qnTFXArt!A"><field name="NUM">0</field></block></value></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="w5:=X8qq{^CzA]{BabV@"><mutation items="2"></mutation><value name="ADD0"><block type="variables_get" id=":w_RDJ7N^fiK{f.7^LL:"><field name="VAR">year</field></block></value><value name="ADD1"><block type="text" id="TQmMZn~$APFYv?|o0mkX"><field name="TEXT">是闰年</field></block></value></block></statement><value name="IF1"><block type="logic_compare" id="^rf_.AW~Aps;XDYPuhI["><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="qk}+,NlI_/r7,](=kH5,"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="uM_c/6Z*f*KaGT,+=iS#"><field name="NUM">1</field></shadow><block type="variables_get" id="-#}kl[+CFk62:j-$Dv7e"><field name="VAR">year</field></block></value><value name="B"><shadow type="math_number" id="*`Xb_5o:zNL`}iIYB~gn"><field name="NUM">400</field></shadow></value></block></value><value name="B"><block type="math_number" id="(2nk5}I![TyLA1f/KqcR"><field name="NUM">0</field></block></value></block></value><statement name="DO1"><block type="inout_print_many" id="dl2dO-;ZXORx3G/Laftn"><mutation items="2"></mutation><value name="ADD0"><block type="variables_get" id="5G8nk#He`eV._I|+Mb?a"><field name="VAR">year</field></block></value><value name="ADD1"><block type="text" id="NQhCarKhkl$Zg_FnR#TF"><field name="TEXT">是闰年</field></block></value></block></statement><statement name="ELSE"><block type="inout_print_many" id="G,.nKD}~$SO{j$v9M6f1"><mutation items="2"></mutation><value name="ADD0"><block type="variables_get" id="pjCNM*FORKhWb`SbG4)-"><field name="VAR">year</field></block></value><value name="ADD1"><block type="text" id="5b9vl.cwGi=Y[l#N74ZW"><field name="TEXT">是平年</field></block></value></block></statement></block></next></block></xml><config>{}</config><code>eWVhciA9IGludChpbnB1dCgn6K+36L6T5YWl5LiA5Liq5bm05Lu977yaJykpCmlmIHllYXIgJSA0ID09IDAgYW5kIHllYXIgJSAxMDAgIT0gMDoKICAgIHByaW50KHllYXIsICfmmK/pl7DlubQnKQplbGlmIHllYXIgJSA0MDAgPT0gMDoKICAgIHByaW50KHllYXIsICfmmK/pl7DlubQnKQplbHNlOgogICAgcHJpbnQoeWVhciwgJ+aYr+W5s+W5tCcpCg==</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="ZvKRW4ew-Bd4/V+?5G/c" x="-616" y="-48"><field name="VAR">start_time</field><value name="VALUE"><block type="controls_millis" id="j3xIg2ift+=@La{@a;D~"></block></value><next><block type="variables_set" id="7`.+!DeSA#w7lF3895TN"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="@PCbj|)4aHa[u=o#5~^6"><field name="NUM">1</field></block></value><next><block type="controls_whileUntil" id="kTmL:K.^K`pTAd88jido"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="Fja6m=H|j|xXQejl6mTd"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="?Iho0oIgI7v0*6/]mvV8"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="Ph!;YS@AxT?cHRoBWTOl"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="}3n(No50U(JZ0gM=RceE"><field name="NUM">1000</field></block></value></block></value><statement name="DO"><block type="inout_print" id="X}]v]0PnEZ~82*m*:H}/"><value name="VAR"><shadow type="text" id="6NItm[YB$1RC(e8R2X9k"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="3Z~UxMGoi,H_~2zrR=Y#"><field name="VAR">i</field></block></value><next><block type="variables_set" id=":{;FGV!66ijWM?)H`0Ng"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id="#.yS0=:)Q7kH6!(cBhAT"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="6qXh9drcsYxQhn?LmH}-"><field name="NUM">1</field></shadow><block type="variables_get" id="OX^RR@!hWI6WBmHo(!yW"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="GO*s7rfsfyuHZSJj/X#J"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="variables_set" id=";Wp=A_e6JN,6Q~n)Al{+"><field name="VAR">end_time</field><value name="VALUE"><block type="controls_millis" id="f4rX?-8Za^wzM{z]Zm]["></block></value><next><block type="inout_print_many" id="gspMgb!_XBa2bv4.tfqg"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="VL1:^@)#5p/uy?~)!5Ag"><field name="TEXT">输出1~1000所花时间为</field></block></value><value name="ADD1"><block type="math_arithmetic" id="6g17u895anXpNw!cRX1?"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="f/aB2V-@pi{dg#n@AcwL"><field name="NUM">1</field></shadow><block type="variables_get" id="BMi?L~;a+)uvMf9vtrU("><field name="VAR">end_time</field></block></value><value name="B"><shadow type="math_number" id="s5Et5=NE;hr2]vQ5=I@R"><field name="NUM">1</field></shadow><block type="variables_get" id="GptAtR4(.sd7eUkyRTuA"><field name="VAR">start_time</field></block></value></block></value><value name="ADD2"><block type="text" id="gyh!)g3oYeYscC5lp;a`"><field name="TEXT">秒</field></block></value></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKCgpzdGFydF90aW1lID0gdGltZS50aW1lKCkKaSA9IDEKd2hpbGUgaSA8PSAxMDAwOgogICAgcHJpbnQoaSkKICAgIGkgPSBpICsgMQplbmRfdGltZSA9IHRpbWUudGltZSgpCnByaW50KCfovpPlh7oxfjEwMDDmiYDoirHml7bpl7TkuLonLCBlbmRfdGltZSAtIHN0YXJ0X3RpbWUsICfnp5InKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="otn94-@p`V|Q5tU-lgN7" x="-616" y="-48"><field name="VAR">start_time</field><value name="VALUE"><block type="controls_millis" id="5/~DspnhOeb|7.ioK4e$"></block></value><next><block type="variables_set" id="$;YvKZ3?fOBgNG.fD]*N"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="E^J9^sNQ[qqF|M0ESFM5"><field name="NUM">1</field></block></value><next><block type="variables_set" id="bIrmS}.8nN~+ph!mU8uo"><field name="VAR">sum</field><value name="VALUE"><block type="math_number" id="N3Om@h47qg.Q(A[8?]TD"><field name="NUM">0</field></block></value><next><block type="controls_whileUntil" id="et`p6JUHh65srC?mA2:?"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="N=L2AbnfWIO0IC|0!Y9w"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="#AcO=vefC2y_UpR@B7V1"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="s_q#@OS/.0UkO!7QEkvo"><field name="VAR">i</field></block></value><value name="B"><block type="math_number" id="oFP.kXGh}^EiQw_w~Lt:"><field name="NUM">1000000</field></block></value></block></value><statement name="DO"><block type="variables_set" id="wy$]X_oGPrI9Kq#$2Rs3"><field name="VAR">sum</field><value name="VALUE"><block type="math_arithmetic" id="N|lDRBTyMXajVe+z:,$D"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="2ee:r;yy_X/v!+rv{y[6"><field name="NUM">1</field></shadow><block type="variables_get" id="6=1K|licE*_*d=iw,D?h"><field name="VAR">sum</field></block></value><value name="B"><shadow type="math_number" id="u]kF;Z5=$$^Vtf(Hf3c~"><field name="NUM">1</field></shadow><block type="variables_get" id="z;R7X.?s~(:uiOie,LoF"><field name="VAR">i</field></block></value></block></value><next><block type="variables_set" id="=_O}w+*siC;m^GF57pRi"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id="W9MP-^!#oPoItOfg0?J@"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="2ee:r;yy_X/v!+rv{y[6"><field name="NUM">1</field></shadow><block type="variables_get" id="JwagDWCY$5,Hk{7y+etF"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="y1hSPdjK;o~gt(o9mq!I"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="inout_print_many" id="$T/=F?mj_6xG3K{3,qF5"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="oY]BS|o7.ISAg@[n6|SD"><field name="TEXT">1+2+……+1000000=</field></block></value><value name="ADD1"><block type="variables_get" id="8j_-EfMMe.XIO7@#S/e$"><field name="VAR">sum</field></block></value><next><block type="variables_set" id="qujcF)U*(^)__pZ$4I2L"><field name="VAR">end_time</field><value name="VALUE"><block type="controls_millis" id="(vuDPyuEva*rs!#o/H3v"></block></value><next><block type="inout_print_many" id="tffMhEIyj!tjXe5z3FJw"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="yJk$D`)j#X$c4fa7PkPu"><field name="TEXT">累加1~1000000所花时间为</field></block></value><value name="ADD1"><block type="math_arithmetic" id="{](M4JMywR0J=;TEdXK5"><field name="OP">MINUS</field><value name="A"><shadow type="math_number" id="Ti3Bqy!}fvRrgqSsrdG@"><field name="NUM">1</field></shadow><block type="variables_get" id="Cf)cAM/Ow1=k.`@z3GIt"><field name="VAR">end_time</field></block></value><value name="B"><shadow type="math_number" id="$mj|G2+)]qZnaYej;sxl"><field name="NUM">1</field></shadow><block type="variables_get" id="YBlB=ZJHPmC)VkW/`2;d"><field name="VAR">start_time</field></block></value></block></value><value name="ADD2"><block type="text" id="KIbKrh].=_$b}EygPE-E"><field name="TEXT">秒</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IHRpbWUKCgpzdGFydF90aW1lID0gdGltZS50aW1lKCkKaSA9IDEKc3VtMiA9IDAKd2hpbGUgaSA8PSAxMDAwMDAwOgogICAgc3VtMiA9IHN1bTIgKyBpCiAgICBpID0gaSArIDEKcHJpbnQoJzErMivigKbigKYrMTAwMDAwMD0nLCBzdW0yKQplbmRfdGltZSA9IHRpbWUudGltZSgpCnByaW50KCfntK/liqAxfjEwMDAwMDDmiYDoirHml7bpl7TkuLonLCBlbmRfdGltZSAtIHN0YXJ0X3RpbWUsICfnp5InKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="controls_forEach" id="g.^o$yehb91Ydu{l*Df0" x="-556" y="-100"><value name="LIST"><shadow type="list_many_input" id="*C;J=n[@-$3eDRQi#SWL"><field name="CONTENT">'welcome','to','our','world'</field></shadow></value><value name="VAR"><shadow type="variables_get" id="Mj_Q7o{i(cV*/]OAhg/x"><field name="VAR">str</field></shadow></value><statement name="DO"><block type="inout_print_inline" id="KS$uc96C~@PJT5V}o(*["><value name="VAR"><shadow type="text" id="]48MAi43,@1#am}UkwkN"><field name="TEXT">Hello</field></shadow><block type="variables_get" id="^kWHla!,N_~3xqGAL}:n"><field name="VAR">str</field></block></value></block></statement></block></xml><config>{}</config><code>Zm9yIHN0cjIgaW4gWyd3ZWxjb21lJywndG8nLCdvdXInLCd3b3JsZCddOgogICAgcHJpbnQoc3RyMixlbmQgPSIiKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="bIrmS}.8nN~+ph!mU8uo" x="-586" y="-104"><field name="VAR">n</field><value name="VALUE"><block type="math_number" id="N3Om@h47qg.Q(A[8?]TD"><field name="NUM">101</field></block></value><next><block type="controls_whileUntil" id="et`p6JUHh65srC?mA2:?"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id="N=L2AbnfWIO0IC|0!Y9w"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="#AcO=vefC2y_UpR@B7V1"><field name="OP">LTE</field><value name="A"><block type="variables_get" id="s_q#@OS/.0UkO!7QEkvo"><field name="VAR">n</field></block></value><value name="B"><block type="math_number" id="oFP.kXGh}^EiQw_w~Lt:"><field name="NUM">200</field></block></value></block></value><statement name="DO"><block type="controls_if" id="kJH|iQ$j):3O7.H/L+@r"><value name="IF0"><block type="logic_operation" id="==L,KsdwOLbm!v{Rx*z;"><field name="OP">AND</field><value name="A"><block type="logic_compare" id="l7[Z88)EnF!G_u`sQUo3"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="#lSaoU1idZ:kPz^?e0OP"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="F+1a/0iwFz]]st;ZKR3D"><field name="NUM">1</field></shadow><block type="variables_get" id="w@q!bb]|67MGH/I=!jjj"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="]Ri=Bk[D`8S!DPbWPObl"><field name="NUM">5</field></shadow></value></block></value><value name="B"><block type="math_number" id="iv$1QAeS6)zR^w=c,Yw5"><field name="NUM">3</field></block></value></block></value><value name="B"><block type="logic_compare" id="qE8c?-RxQ;13}62CB1N/"><field name="OP">EQ</field><value name="A"><block type="math_arithmetic" id="S}a2-:lNI{yaN/u;+F9`"><field name="OP">QUYU</field><value name="A"><shadow type="math_number" id="F+1a/0iwFz]]st;ZKR3D"><field name="NUM">1</field></shadow><block type="variables_get" id=":2=5h@?Qe!EfMV`HU]8:"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="#EQRVj_AOSn_liU#h0F*"><field name="NUM">7</field></shadow></value></block></value><value name="B"><block type="math_number" id="oDOmDrmG$jyy$65Tp?^."><field name="NUM">2</field></block></value></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="$T/=F?mj_6xG3K{3,qF5"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="oY]BS|o7.ISAg@[n6|SD"><field name="TEXT">符合条件的玩具数量:</field></block></value><value name="ADD1"><block type="variables_get" id="8j_-EfMMe.XIO7@#S/e$"><field name="VAR">n</field></block></value></block></statement><next><block type="variables_set" id="di_gpeJ{QaBIct:Th-UV"><field name="VAR">n</field><value name="VALUE"><block type="math_arithmetic" id="KSLc-[BBepl*J5YF1.;B"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="hEJbkT{RW#=rp3=xQUyH"><field name="NUM">1</field></shadow><block type="variables_get" id="-HUQJ;}/-UpGK|e9v#t)"><field name="VAR">n</field></block></value><value name="B"><shadow type="math_number" id="f/w5b4DALPuVu@`(z=D_"><field name="NUM">3</field></shadow></value></block></value></block></next></block></statement></block></next></block></xml><config>{}</config><code>biA9IDEwMQp3aGlsZSBuIDw9IDIwMDoKICAgIGlmIG4gJSA1ID09IDMgYW5kIG4gJSA3ID09IDI6CiAgICAgICAgcHJpbnQoJ+espuWQiOadoeS7tueahOeOqeWFt+aVsOmHj++8micsIG4pCiAgICBuID0gbiArIDMK</code>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="-R?$,g?yY$eWQQ1yvnIw" x="-487" y="-84"><field name="VAR">height</field><value name="VALUE"><block type="inout_type_input" id="5Q.H$;P/hkT~(RO8)0}="><field name="DIR">float</field><value name="VAR"><shadow type="text" id=")bt[ALwgSd2(F;pH4T3s"><field name="TEXT">请输入您的身高(米):</field></shadow></value></block></value><next><block type="controls_if" id="2p0@;6}`HRfsK0@4RoHB"><mutation else="1"></mutation><value name="IF0"><block type="logic_compare" id="TPdZ$XVif=,])!LX}T5Q"><field name="OP">LT</field><value name="A"><block type="variables_get" id="^.-!rzU{YCc|hc$yT6]="><field name="VAR">height</field></block></value><value name="B"><block type="math_number" id="$W1q#gi]F[9Y=|*Lh^rN"><field name="NUM">1.2</field></block></value></block></value><statement name="DO0"><block type="inout_print_many" id="w5:=X8qq{^CzA]{BabV@"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="TQmMZn~$APFYv?|o0mkX"><field name="TEXT">您的身高为:</field></block></value><value name="ADD1"><block type="variables_get" id="dO04_XE?P9.K=mSQ2:R:"><field name="VAR">height</field></block></value><value name="ADD2"><block type="text" id="2wmCck-jR69sr^:U`]fq"><field name="TEXT">米,免票</field></block></value></block></statement><statement name="ELSE"><block type="inout_print_many" id="}A!d0HXuvJq(P1~@^i,*"><mutation items="3"></mutation><value name="ADD0"><block type="text" id="dA89V.Jh4PYDKy5)/87-"><field name="TEXT">您的身高为:</field></block></value><value name="ADD1"><block type="variables_get" id="RR=h_hWa(tsxbSiHn4.t"><field name="VAR">height</field></block></value><value name="ADD2"><block type="text" id="mrlx/Q*DPtgKG-e{DvUG"><field name="TEXT">米,可以购买半价票</field></block></value></block></statement></block></next></block></xml><config>{}</config><code>aGVpZ2h0ID0gZmxvYXQoaW5wdXQoJ+ivt+i+k+WFpeaCqOeahOi6q+mrmO+8iOexs++8ie+8micpKQppZiBoZWlnaHQgPCAxLjI6CiAgICBwcmludCgn5oKo55qE6Lqr6auY5Li677yaJywgaGVpZ2h0LCAn57Gz77yM5YWN56WoJykKZWxzZToKICAgIHByaW50KCfmgqjnmoTouqvpq5jkuLrvvJonLCBoZWlnaHQsICfnsbPvvIzlj6/ku6XotK3kubDljYrku7fnpagnKQo=</code>
|
||||
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="-R?$,g?yY$eWQQ1yvnIw" x="-487" y="-84"><field name="VAR">a</field><value name="VALUE"><block type="inout_type_input" id="5Q.H$;P/hkT~(RO8)0}="><field name="DIR">int</field><value name="VAR"><shadow type="text" id=")bt[ALwgSd2(F;pH4T3s"><field name="TEXT">输入科普书的册数:</field></shadow></value></block></value><next><block type="variables_set" id=".g3B,yUItf.G]0!4:U+q"><field name="VAR">h</field><value name="VALUE"><block type="math_arithmetic" id="SMPJJDofE7CKv)VmD?#-"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="wv+?nIV(ItVfy}l`z2P{"><field name="NUM">1</field></shadow><block type="variables_get" id="!;a|Gqjewb$;{}eQrLJx"><field name="VAR">a</field></block></value><value name="B"><shadow type="math_number" id="K{[cbcv@tY@{R(iH5#r9"><field name="NUM">8</field></shadow></value></block></value><next><block type="variables_set" id="Q)xOk|QtppLdF!wN72DA"><field name="VAR">b</field><value name="VALUE"><block type="inout_type_input" id="]Z8m0T`@aHyr=0*P+cy*"><field name="DIR">int</field><value name="VAR"><shadow type="text" id="q5Q=*LWxH5)ju^xTu4C@"><field name="TEXT">输入故事书的册数:</field></shadow></value></block></value><next><block type="variables_set" id="?J-EjJzOzBuOB*VrTusw"><field name="VAR">j</field><value name="VALUE"><block type="math_arithmetic" id="r+UsPw-?_zKDilI}ATEh"><field name="OP">MULTIPLY</field><value name="A"><shadow type="math_number" id="wv+?nIV(ItVfy}l`z2P{"><field name="NUM">1</field></shadow><block type="variables_get" id="`}XIHOCwZA8BlUZI1e,j"><field name="VAR">b</field></block></value><value name="B"><shadow type="math_number" id="HtG=t?R`ADWJW~iS7?k."><field name="NUM">9</field></shadow></value></block></value><next><block type="variables_set" id="]`Zu[mpG!#,UpvdOervZ"><field name="VAR">s</field><value name="VALUE"><block type="math_arithmetic" id="~5=8S4AamDLQZN/-**Jq"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="wv+?nIV(ItVfy}l`z2P{"><field name="NUM">1</field></shadow><block type="variables_get" id="pc}|]h7z*Au-xTB~Ljl~"><field name="VAR">h</field></block></value><value name="B"><shadow type="math_number" id="f$o^=`[uJN*ht;8`:cu^"><field name="NUM">9</field></shadow><block type="variables_get" id="}$|`C1GIxE{]RGKQTR;j"><field name="VAR">j</field></block></value></block></value><next><block type="inout_print_many" id="w5:=X8qq{^CzA]{BabV@"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="TQmMZn~$APFYv?|o0mkX"><field name="TEXT">购书费用是:</field></block></value><value name="ADD1"><block type="variables_get" id="QOB{2E_rxhB)2:kQSS(u"><field name="VAR">s</field></block></value></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>YSA9IGludChpbnB1dCgn6L6T5YWl56eR5pmu5Lmm55qE5YaM5pWw77yaJykpCmggPSBhICogOApiID0gaW50KGlucHV0KCfovpPlhaXmlYXkuovkuabnmoTlhozmlbDvvJonKSkKaiA9IGIgKiA5CnMgPSBoICsgagpwcmludCgn6LSt5Lmm6LS555So5piv77yaJywgcykK</code>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
<xml version="Mixly 3.0 rc0" board="Python 3 Online@Python 3 Online" shown="block"><block type="variables_set" id="lP5vcAMqmIb=b0upxF)?" x="-802" y="-135"><field name="VAR">num</field><value name="VALUE"><block type="list_many_input" id="-rn_Ue:1:1Wy5;_mo]Lc"><field name="CONTENT">17,19,15,20,19</field></block></value><next><block type="variables_set" id=":8@XmhJ0Yv2}B9]tpiEC"><field name="VAR">cc</field><value name="VALUE"><block type="list_trig" id="]2?bx5k~z9_9~S@N2W]L"><field name="OP">LEN</field><value name="data"><shadow type="variables_get" id="T(+3q3TN4fy![JVGi54S"><field name="VAR">num</field></shadow></value></block></value><next><block type="variables_set" id="gLZ*+E:E#T5M`n$hE7X-"><field name="VAR">a</field><value name="VALUE"><block type="lists_get_index" id="?:Cf0?2,{TKma#b{r-wm"><value name="LIST"><shadow type="variables_get" id="x3PW$9.4BG~w4Wblq2@|"><field name="VAR">num</field></shadow></value><value name="AT"><shadow type="math_number" id="8}6=E`QB~kx8@2+p,l0j"><field name="NUM">0</field></shadow></value></block></value><next><block type="variables_set" id="]qALM6PMq{R!-;:.!!uD"><field name="VAR">i</field><value name="VALUE"><block type="math_number" id="V+RZ5bKIL`+/.ruSnnt!"><field name="NUM">1</field></block></value><next><block type="controls_whileUntil" id=")ShbCY*kzHTK?ac.eT*v"><field name="MODE">WHILE</field><value name="BOOL"><shadow type="logic_boolean" id=".T|+-NhOeT[LI#K+rSwj"><field name="BOOL">TRUE</field></shadow><block type="logic_compare" id="vYEtzl9{U-)kLI_;y:.o"><field name="OP">LT</field><value name="A"><block type="variables_get" id=";6*XGo]dFWQHQC+ok{ME"><field name="VAR">i</field></block></value><value name="B"><block type="variables_get" id="h:2/W-+TmmXMrod8evGe"><field name="VAR">cc</field></block></value></block></value><statement name="DO"><block type="controls_if" id=";l*gN2ns9gb#{xMCu`Pe"><value name="IF0"><block type="logic_compare" id="YdG2$4_w(P`TSn=XUQBA"><field name="OP">GT</field><value name="A"><block type="lists_get_index" id="P#s5wu;Px/NX_.~A`:iD"><value name="LIST"><shadow type="variables_get" id="b7^c]DtF1Pd/hyJTHO.9"><field name="VAR">num</field></shadow></value><value name="AT"><shadow type="math_number" id="]Gy*.C=87UXi]doDV!`^"><field name="NUM">0</field></shadow><block type="variables_get" id="8fow#.Jy7o`g5nJ,Dhu5"><field name="VAR">i</field></block></value></block></value><value name="B"><block type="variables_get" id="oN4rOpP^krHV-(HhT)wR"><field name="VAR">a</field></block></value></block></value><statement name="DO0"><block type="variables_set" id="xd,4={8bmbM+;m[FaoIT"><field name="VAR">a</field><value name="VALUE"><block type="lists_get_index" id="ihF|[,wIE/x$76}R/A^|"><value name="LIST"><shadow type="variables_get" id="C)g8G3qUxW4fST@c[c:$"><field name="VAR">num</field></shadow></value><value name="AT"><shadow type="math_number" id="s*Q8[xXJ,cgO5Y;$!(ZM"><field name="NUM">0</field></shadow><block type="variables_get" id="+*^]JaH06iPv~E*348$J"><field name="VAR">i</field></block></value></block></value></block></statement><next><block type="variables_set" id="5.r[iD52~kuj+KSTV0g5"><field name="VAR">i</field><value name="VALUE"><block type="math_arithmetic" id=";[TG.@X_)fRw4j/7+-le"><field name="OP">ADD</field><value name="A"><shadow type="math_number" id="fdAf!6P@PNU92@[/s):W"><field name="NUM">1</field></shadow><block type="variables_get" id="sk,e/suTr(Zjektv8X0X"><field name="VAR">i</field></block></value><value name="B"><shadow type="math_number" id="2@E5SX;(/b[Y,XW$_G^e"><field name="NUM">1</field></shadow></value></block></value></block></next></block></statement><next><block type="inout_print_many" id="{y3Nrgd?AHHNT5vmq_RL"><mutation items="2"></mutation><value name="ADD0"><block type="text" id="Dv$mZJ@4hk92=E61TMl["><field name="TEXT">最大数为</field></block></value><value name="ADD1"><block type="variables_get" id="VZGIZ9F#r/yd`Yy[iQ=W"><field name="VAR">a</field></block></value></block></next></block></next></block></next></block></next></block></next></block></xml><config>{}</config><code>aW1wb3J0IG1hdGgKCgpudW0gPSBbMTcsMTksMTUsMjAsMTldCmNjID0gbGVuKG51bSkKYSA9IG51bVswXQppID0gMQp3aGlsZSBpIDwgY2M6CiAgICBpZiBudW1baV0gPiBhOgogICAgICAgIGEgPSBudW1baV0KICAgIGkgPSBpICsgMQpwcmludCgn5pyA5aSn5pWw5Li6JywgYSkK</code>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user