File: mu.mo

package info (click to toggle)
mu-editor 1.0.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,044 kB
  • sloc: python: 16,323; makefile: 129; xml: 29; sh: 7
file content (102 lines) | stat: -rw-r--r-- 29,377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[&))*?!j$4
"?&b,(TDK
+#5YKxJG7`1j5#>b~#9)"6XY"&%$Afer7J2\B7aVKb >g L ! !")!@L!!!!!!!!"#
"!."P"l""r"-""?" #
3#A#F#&e#@#:#7$@$9G$J$$R$2%NG%%%
%%;%#&<&A&D&#V&'z&!&&&&&@&6'!:'J\''('
''/'d(((m()!*+,J,;@-'|-----B-`9."....////0	020YA0
0
00000&1,101H1T1Y1y111 1#1$1#2$)2BN2*222[2<3Z3q3y3	33333334=%4=c4O445/6N6{U7L7898O8;:JA:E:j:b=;+;a;.<5<h%==!>E>1>1,?+^?s??@/.@^@+|@@@K@,A+DA(pA A#AA!aB8BB"B$BC%C.C
7CBC
JCUCD
E!E.@E+oEEE(E'F*,F$WF'|F$F6F0G'1G9YG&GGNG< H]H
yHH6HHH"H"ID=IIIIII	JOJ0oJxJK# K#DK(hKK"K6K'L)LhHLLL$L$L#$M%HMnMe{MMMNN1NONdN0yNN<NN(O>OWwOXOa(PEPQP"Q8Q!HQ4jQQQQQQ	
RR$R#+R(ORxRR"R(R%RKSSSfSyS#S-SQSH$TTmTT3TRTPUImUU6U
VV2VEV=bV&VVV	VV%V!W:W@W\WcWHjWWW9WX!X;XLX?aXaXY"
YX-YYZs[[\T]0i]*]!]	]]"]E!^ag^$^^^___``
`+`(0`Y```a"a6a"Fa3iaaaaaaabb/"b%Rb%xb%b%b*bc1c8cKNcccccccdd.d5d"Kdnd>d@dHeUeueWfufllgLg&h-hIh/jQ6j?jij]2k5k]k$lLlrm{mn6n3n$n%oX?ooo4op2 pSpWp>wp6p#p(q :q'[qsqq'r>rWrprrr	rrr
ri"
2.4s{#*]_hAN>`Yea'Of|Wo}G%L-1,qy)7J8
k( HCbUmlX&<RK	^\Q~Ixj9Pn0:v$3DBdp?=M6w@tcSFZV/T5uE!g+[rz; Runtime: {} above this line# Write your code here :-)'{}' successfully copied to micro:bit.'{}' successfully deleted from micro:bit.(A dict of {} items.)(A list of {} items.)A file of that name is already open in Mu.A good programmer asks questions.A good programmer avoids complexity.A good programmer is humble.A good programmer is patient.A good programmer is playful.A good programmer is willing to say, 'I don't know'.A good programmer learns to learn.A good programmer promotes simplicity.A good programmer thinks beyond the obvious.Access the file system on the micro:bit.Adafruit CircuitPythonAlgorithm: a word used by programmers when they don't want to explain what they did.An open mind, spirit of adventure and respect for diversity are key.Awesome! Zero problems found.BBC micro:bitBBC micro:bit SettingsBe brave, break things, learn and have fun!Beautiful is better than ugly.Cannot Set Breakpoint.Cannot connect to device on port {}Change Mu's mode of behaviour.Change mode at any time by clicking the "Mode" button containing Mu's logo.Changed to {} mode.CheckCheck your code for mistakes.Click on the device's reset button, wait a few seconds and then try again.Coding is collaboration.Complexity is the enemy. KISS - keep it simple, stupid!Compliment and amplify the good things with code.Connection timed out. Is your machine slow or busy? Free up some of the machine's resources and try again.ContinueContinue to run your Python script.Copied code onto micro:bit.Copying '{}' to micro:bit.Could not find "{}".Could not find MicroPython runtime.Could not find an attached Adafruit CircuitPython device.Could not find an attached BBC micro:bit.Could not find an attached device.Could not find localhost.
Ensure you have '127.0.0.1 localhost' in your /etc/hosts file.Could not load {}Could not rename file.Could not save file (disk problem)Could not save file (encoding problem)Create a new Python script.Create code using standard Python 3.Current LogCurrently Mu only works with Python source files or hex files created with embedded MicroPython code.Data Flood Detected!DebugDebug InspectorDebug your Python 3 code.Debug your Python script.Debugger error: {}Debugger info: {}Debugger requires a Python script filename to run.Debugger warning: {}Debugging is twice as hard as writing the code in the first place.Delete (cannot be undone)Deleting '{}' from micro:bit.Detected new {} device.Diversity promotes creativity.Does this file exist?
If it does, do you have permission to read it?

Please check and try again.Don't worry if it doesn't work. Learn the lesson, fix it and try again! :-)Error saving file to disk. Ensure you have permission to write the file and sufficient disk space.Errors should never pass silently. Unless explicitly silenced.Explaining a programming problem to a friend often reveals the solution. :-)Explicit is better than implicit.File already existsFile already exists; overwrite it?File system cannot work at the same time as the REPL or plotter.FilesFiles on your computer:Files on your micro:bit:Filesystem on micro:bitFind / ReplaceFind:Finished flashing.FlashFlash your code onto the micro:bit.Flashing "{}" onto the micro:bit.Flat is better than nested.FontsFor the Zen of Python: import thisGetting '{}' from micro:bit. Copying to '{}'.Good job! No problems found.Google, Facebook, NASA, Pixar, Disney and many more use Python.Graphical DebuggerHello, World!HelpHighlighting matches for "{}".Hurrah! Checker turned up no problems.If the implementation is easy to explain, it may be a good idea.If the implementation is hard to explain, it's a bad idea.If you don't know, ask. Nobody to ask? Just look it up.ImagesIn the face of ambiguity, refuse the temptation to guess.In theory, theory and practice are the same. In practice, they're not. ;-)Is this a {} file?It looks like this could be a {} file.

Would you like to change Mu to the {}mode?It's fun to program.Lines that are comments or some multi-line statements cannot have breakpoints.LoadLoad a Python script.Logging to {}Make games with Pygame Zero.Make your software both useful AND fun. Empower your users.Minify Python code before flashing?ModeMuMu AdministrationMu cannot read the characters in {}Mu was created by Nicholas H.Tollervey.Mu was not able to open this fileMu {}Mu's current mode of behaviour.MusicNameNamespaces are one honking great idea -- let's do more of those!NewNice one! Zero problems detected.Now is better than never. Although never is often better than *right* now.OpenOpen a serial connection to your device.Open in MuOpening '{}'Our minifier tried but your script is too long!Override the built-in MicroPython runtime with the following hex file (empty means use the default):PlayPlay your Pygame Zero game.Please do not disconnect the device until flashing has completed. Please check the logs for more information.Please ensure you leave enough time for the BBC micro:bit to be attached and configured correctly by your computer. This may take several seconds. Alternatively, try removing and re-attaching the device or saving your work and restarting Mu if the device remains unfound.Please make sure the device is plugged into this computer.

It must have a version of MicroPython (or CircuitPython) flashed onto it before the Plotter will work.

Finally, press the device's reset button and wait a few seconds before trying again.Please make sure the device is plugged into this computer.

It must have a version of MicroPython (or CircuitPython) flashed onto it before the REPL will work.

Finally, press the device's reset button and wait a few seconds before trying again.Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again.Please select the desired mode then click "OK". Otherwise, click "Cancel".Please try again, this time with something in the find box.Plot data from your script or the REPL.Plot incoming REPL data.PlotterProblem with scriptProgrammers count from zero.Programming has more to do with problem solving than writing code.Programming is a form of magic. Learn to cast the right spells with code and you'll be a wizard.Put yourself in your users' shoes.Pygame ZeroPython 3Python files for Adafruit CircuitPython devices are stored on the device. Therefore, to edit these files you need to have the device plugged in. Until you plug in a device, Mu will use the directory found here:

 {}

...to store your code.Python3 (Jupyter)Python3 EnvironmentPython3 data tupleQuitQuit Mu.REPLREPL and file system cannot work at the same time.REPL stands for read, evaluate, print, loop. It's a fun way to talk to your computer! :-)REPL started.REPL stopped.Readability counts.Replace (optional):Replace all?Replaced "{}" with "{}".Replaced {} matches of "{}" with "{}".RunRun your Python script.Running: {}SaveSave the current Python script.Saved file: {}Select ModeSerialShow help about Mu in a browser.Show the fonts used by Pygame Zero.Show the images used by Pygame Zero.Show the music used by Pygame Zero.Show the sounds used by Pygame Zero.Simple is better than complex. Complex is better than complicated.Simplicity is the ultimate sophistication.SoundsSparse is better than dense.Special cases aren't special enough to break the rules. Although practicality beats purity.Start with your users' needs.Starting iPython REPL.Step InStep OutStep OverStep into a function.Step out of a function.Step over a line of code.StopStop the running code.Stop your Pygame Zero game.Stop your Python script.Stopping iPython REPL (this may take a short amount of time).Successfully copied '{}' from the micro:bit to your computer.Syntax error. Python cannot understand this line. Check for missing characters!The REPL and file system both use the same USB serial connection. Only one can be active at any time. Toggle the file system off and try again.The environment variables shown below will be set each time you run a Python 3 script.

Each separate enviroment variable should be on a new line and of the form:
NAME=VALUEThe file "{}" is already open.The file contains characters Mu expects to be encoded as {0} or as the computer's default encoding {1}, but which are encoded in some other way.

If this file was saved in another application, re-save the file via the 'Save as' option and set the encoding to {0}The file system and the REPL and plotter use the same USB serial connection. Toggle the REPL and plotter off and try again.The micro:bit runtime you specified ('{}') does not exist. Please try again.The plotter and file system both use the same USB serial connection. Only one can be active at any time. Toggle the file system off and try again.The plotter and file system cannot work at the same time.The plotter is flooded with data which will make Mu unresponsive and freeze. As a safeguard, the plotter has been stopped.

Flooding is when chunks of data of more than 1024 bytes are repeatedly sent to the plotter.

To fix this, make sure your code prints small tuples of data between calls to 'sleep' for a very short period of time.ThemeThere is un-saved work, exiting the application will cause you to lose it.There should be one-- and preferably only one --obvious way to do it.There was a problem copying the file '{}' onto the micro:bit. Please check Mu's logs for more information.There was a problem deleting '{}' from the micro:bit. Please check Mu's logs for more information.There was a problem flashing the micro:bit.There was a problem getting '{}' from the micro:bit. Please check Mu's logs for more information.There was a problem getting the list of files on the micro:bit. Please check Mu's logs for technical information. Alternatively, try unplugging/plugging-in your micro:bit and/or restarting Mu.This editor is called Mu (you say it 'mew' or 'moo').This editor is free software written in Python. You can modify it, add features or fix bugs if you like.This name is already used by another part of Python. If you use that name, things are likely to break. Please try again with a different filename.This name is already used by another part of Python. If you use this name, things are likely to break. Please try again with a different filename.To understand what recursion is, you must first understand recursion.Toggle theme between day, night or high contrast.Try to see things from your users' point of view.Unable to connect to the Python debugger.

Unable to convert all the characters. If you have an encoding line at the top of the file, remove it and try again.Unable to flash "{}"Unsupported BBC micro:bit.Use CircuitPython on Adafruit's line of boards.Use the REPL for live coding.Use the REPL to live-code on the micro:bit.ValueWell done! No problems here.When reporting a bug, copy and paste the content of the following log file.Wisest are they that know they know nothing.Would you like to change Mu to the {} mode?Write MicroPython for the BBC micro:bit.You cannot use the filename "{}"You must provide something to find.Your device is newer than this version of Mu. Please update Mu to the latest version to support this device.

https://codewith.mu/Your script has finished running.Your script is too long and the minifier isn't availableYour script is too long!Zoom in (to make the text bigger).Zoom out (to make the text smaller).Zoom-inZoom-outuntitled{} Plotter{} REPL{} [{}:{}]Project-Id-Version: Mu Chinese
POT-Creation-Date: 2018-08-07 18:21+0800
PO-Revision-Date: 2018-11-19 13:46+0800
Language-Team: 管宁川John (Guan.NingChuan@Gmail.Com)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Generated-By: pygettext.py 1.5
X-Generator: Poedit 2.2
Last-Translator: 管宁川John <Guan.NingChuan@Gmail.Com>
Plural-Forms: nplurals=1; plural=0;
Language: zh_CN
 运行时:{} 在这行之上# 在这里写上你的代码 :-)“{}”已成功的复制到了 micro:bit 。已成功从 micro:bit 中删除“{}”。( {} 项的字典(dict)。)( {} 项的列表(list)。)该名称的文件已在 Mu 中打开。一个优秀的程序员善于提问。一个优秀的程序员会避免复杂。一个优秀的程序员很谦虚。一个优秀的程序员很有耐心。一个优秀的程序员很有趣。一个优秀的程序员愿意说:“我不懂”。一个优秀的程序员会学习如何学习。一个优秀的程序员崇尚简单。一个优秀的程序员思考不止于表面的问题。访问 micro:bit 上的文件系统。Adafruit CircuitPython算法:程序员在不想解释他们所做的事情时使用的一个词。开阔思路、冒险精神及尊重是多样性的关键。真棒!没发现问题。BBC micro:bitBBC micro:bit 设置要勇敢的打破一切,快乐的学习和玩耍!优美胜于丑陋。无法设置断点。无法在 {} 端口上连接设备改变Mu的运行模式。通过点击有Mu图标的“模式”按钮来随时更改模式。已更改为 {} 模式。检查检查代码中的错误。按一下设备的重置(reset)按钮,等待几秒钟,然后重试。编程需要合作。复杂是敌人。 KISS - keep it simple, stupid!(保持简单和纯粹!)使用代码来赞美和放大美好的东西。连接超时。是你的电脑运行太慢还是运行的东西太多?尝试清理内存或CPU占用再试一次吧。继续继续运行你的 Python 脚本。已将代码复制到 micro:bit 。正在将“{}”复制到 micro:bit 。找不到 ”{}”。找不到 MicroPython 运行时。找不到已连接的 Adafruit CircuitPython 设备。找不到已连接的 BBC micro:bit 。找不到已连接的设备。找不到 localhost 。
请确认你的 /etc/hosts 文件里有这一段:“127.0.0.1 localhost” 。无法加载 {}无法重命名文件。无法保存文件(磁盘问题)无法保存文件(编码问题)创建一个新的 Python 脚本。使用标准 Python 3 编写代码。当前日志目前,Mu 仅适用于使用嵌入式 MicroPython 代码创建的 Python 源文件或 hex 文件。检测到数据泛滥!调试调试检查器调试你的 Python 3 代码。调试你的 Python 脚本。调试器错误:{}调试器信息:{}调试器需要一个Python脚本才能运行。调试器警告:{}在开始的时候,调试代码比写代码要难两倍。删除(无法撤销)正在从 micro:bit 中删除“{}”。检测到新的 {} 设备。多样性促进创造力。这个文件存在吗?
如果存在,你有读取权限吗?

请检查并重试。如果它不起作用,别担心。 看看教程,修复它,然后再试一次!:-)将文件保存到磁盘时出错。 确保你有写入文件的权限和足够的磁盘空间。除非明确地使其沉默,错误永远不应该默默地溜走。与朋友讨论编程中遇到的问题,通常会获得新的解决方案。:-)显式胜于隐式。文件已存在文件已存在,是否覆盖?文件系统无法与REPL或绘图器同时工作。文件在电脑上的文件:在 micro:bit 上的文件:micro:bit 上的文件系统查找 / 替换查找:刷入完成。刷入将代码刷入到 micro:bit 上。正在将“{}”刷入到 micro:bit 。扁平胜于嵌套。字体了解 Python 之禅:import this正在将“{}”复制到 micro:bit 。干得漂亮! 没有发现问题。谷歌、Facebook、NASA、皮克斯、迪士尼等等都在使用Python。图形化调试器你好,世界!帮助高亮显示“{}”的匹配项。诶嘿!检查结果显示,没有问题。如果写的代码很容易清楚表述的话,那很有可能是个好想法。如果写的代码很难清楚表述的话,那就是个糟糕想法。如果你不知道,就提问吧。找不到人问的话,就自己查查看吧。图片面对不明确的定义,拒绝猜测的诱惑。理论上来说,理论和实践都是一样的。 在实践中,并不是。;-)这是一个 {} 文件吗?看起来这可能是一个{}文件。

你想将 Mu 改为{}模式吗?编程是个有趣的事情。作为单行或多行注释语句不能设置断点。加载加载一个 Python 脚本。记录日志到 {}用 Pygame Zero 做游戏。让你的软件既有用又有趣。 为你的用户赋能。在刷入之前缩小 Python 代码?模式MuMu 管理Mu 无法读取 {} 中的字符Mu 由 Nicholas H.Tollervey 创造。Mu 无法打开此文件Mu {}Mu 当前的运行模式。音乐名称命名空间是个绝妙的想法,让我们多多地使用它们吧!新建棒! 检测到0个问题。做比不做好,但立马去做有时还不如不做。打开打开与设备的串口连接。在 Mu 中打开正在打开“{}”我们的简化器尝试过了,但你的脚本实在太长!使用下面的hex文件重写内置的 MicroPython 运行环境(留空使用默认文件):开始开始你的 Pygame Zero 游戏。在刷入完成之前,请不要断开设备。 请查看日志以获取更多信息。请确保您留出了足够的时间让您的计算机正确连接和配置 BBC micro:bit 设备。这可能需要几秒钟的时间。 或者您可以尝试保存文件并重新连接设备,如果仍未发现设备,您还可以尝试重新启动 Mu 。请确保已将设备插入这台电脑。

在绘图器工作之前,设备必须有一个 MicroPython 或 CircuitPython 版本的固件已经刷入。

最后,按一下设备的重置(reset)按钮并等待几秒钟后再重试。请确保已将设备插入这台电脑。

在 REPL 工作之前,设备必须有一个 MicroPython 或 CircuitPython 版本的固件已经刷入。

最后,按一下设备的重置(reset)按钮并等待几秒钟后再重试。请确保已将设备插入此计算机。

在文件系统工作之前,设备必须已输入MicroPython。

最后,按设备的重置(reset)按钮并等待几秒钟后再重试。请选择所需模式,然后单击“确定”。否则,请单击“取消”。请在查找框中输入内容,然后重试。从你的脚本或 REPL 的绘制数据。绘制由 REPL 传入的数据。绘图器脚本问题程序员们都从0开始计数。编程更多地是为了解决问题,而不是单纯的写代码。编程是一种魔法。 学习使用代码施放正确的法术,你将成为一名魔法师。让自己站在用户的位置上。Pygame ZeroPython 3Adafruit CircuitPython 设备的 Python 文件存储在设备上。 因此,要编辑这些文件,需要您插入设备。在插入设备之前,Mu 将使用这个目录:

 {}

…来存储您的代码。Python3(Jupyter)Python3 环境变量Python3 数据元组退出退出 Mu 。REPLREPL和文件系统不能同时工作。REPL 代表“读取(Read)-求值(Evaluate)-打印(Print)”的循环(Loop)。 这是与您的计算机交谈的一个有趣方式!:-)REPL 已启动。REPL 已停止。可读性应当被重视。替换(可选):全部替换?已将“{}”替换为“{}”。已将{}个“{}”的匹配项替换为“{}”。运行运行你的 Python 脚本。运行脚本:{}保存保存当前 Python 脚本。已保存文件:{}选择模式串口在浏览器中显示关于Mu的帮助内容。显示 Pygame Zero 使用的字体。显示 Pygame Zero 使用的图片。显示 Pygame Zero 使用的音乐。显示 Pygame Zero 使用的音效。简单胜于复杂。复杂胜于难懂。简单是终极的复杂。音效分散胜于密集。尽管实用性会打败纯粹性,特例也不能凌驾于规则之上。从你的用户需求出发。正在启动 iPython REPL 。步入步出步进步入一个函数。步出一个函数。步进一行代码。停止停止运行代码。停止你的 Pygame Zero 游戏。停止你的 Python 脚本。正在停止 iPython REPL (可能需要一点点时间)。已成功从 micro:bit 中,复制“{}”到你的电脑上。语法错误。 Python 无法理解这一行。 检查缺少的字符!REPL和文件系统都使用相同的USB串口通讯。任何时候只能使用其中一个功能。请关闭文件系统,然后重试。每次运行 Python 3 脚本时都会设置下面的环境变量。

每行一个单独的环境变量: 
名称 = 值文件“{}”已经打开。文件的编码有问题,该文件所包含字符应为 Mu 的默认编码{0}或计算机的默认编码{1}。

如果此文件是通过另外一个应用程序保存,请通过“另存为”选项重新保存文件,并将编码设置为{0}文件系统、REPL、绘图器使用相同的USB串口通讯。 请关闭REPL和绘图器,然后重试。您指定的 micro:bit 运行时(’{}’)不存在。请再试一次。绘图器和文件系统都使用相同的USB串口通讯。任何时候只能使用其中一个功能。请关闭文件系统,然后重试。绘图器和文件系统无法同时工作。绘图器已经数据泛滥,这将使 Mu 无响应并卡死。作为一种保护措施,绘图器已经停止。

泛滥是指不停的发送超过 1024 字节的大量数据到绘图器。

要解决此问题,请确保您的代码在打印小的元组(tuple)数据的间隔中,调用非常短时间的“sleep”函数。主题你有还没有保存的代码,如果现在退出程序的话将不会保存。只用一种方法,最好只有一种方法来做一件事。将文件“{}”复制到 micro:bit 上时出现问题。 请查看 Mu 的日志以获取更多信息。从 micro:bit 删除“{}”时出现问题。 请查看 Mu 的日志以获取更多信息。刷入程序到 micro:bit 时出现了一个问题。从 micro:bit 获取’{}’时出现问题。 请查看 Mu 的日志以获取更多信息。获取 micro:bit 上的文件列表时出现问题。 请查看Mu的日志以获取技术信息。 或者尝试重新插拔 micro:bit 和重启 Mu 。这个编辑器名为 Mu ,你可以读作“谬(miu)”或“沐(mu)”。这个编辑器是用 Python 编写的免费软件。 您可以根据需要修改,添加功能或修复错误。这个名字已被 Python 的另一部分使用。如果你使用这个名字,可能会出问题。请使用其他文件名重试。这个名字已被 Python 的另一部分使用。如果你使用这个名字,可能会出问题。请使用其他文件名重试。要理解递归是什么,你必须先了解递归。切换日间、夜间或者高对比度的主题。尝试从用户的角度看问题。无法连接到 Python 调试器。

无法转换所有字符。 如果文件顶部有编码行,请将其删除并重试。无法刷入“{}”不支持的 BBC micro:bit 。在 Adafruit 的开发板上使用 CircuitPython 。用 REPL 进行实时编程。使用 REPL 在 micro:bit 上实时编写代码。值做得好! 这里没问题。反馈 bug 时,复制并粘贴以下日志文件的内容。最聪明的是他们知道他们什么都不知道。你想将 Mu 改为 {} 模式吗?为 BBC micro:bit 编写 MicroPython 。你不能使用文件名“{}”你需要提供需要查找的内容。您的设备比此版本的 Mu 更新。 请将 Mu 更新到最新版本以支持此设备。

https://codewith.mu/您的脚本已完成运行。您的脚本太长,简化器不可用你的脚本太长了!放大编辑器文本。缩小编辑器文本。放大缩小无标题{} 绘图器{} REPL{} [{}:{}]