This commit is contained in:
blueloveTH 2023-02-05 22:09:50 +08:00
parent 5faf7bbc6c
commit e81c1c4491
2 changed files with 3 additions and 8 deletions

View File

@ -33,10 +33,10 @@ def f1():
a = {1: 2, 3: 4}
x = a[0]
except A:
print('<?>')
exit(1)
except B:
print('<?>')
print('<?>')
exit(1)
exit(1)
try:
f1()

View File

@ -29,11 +29,6 @@ function term_init() {
switch (e) {
case '\r': // Enter
term.write("\r\n");
if(command == 'exit()'){
stopped = true;
term.write("Bye!\r\n");
break;
}
need_more_lines = Module.ccall('pkpy_repl_input', 'bool', ['number', 'string'], [repl, command]);
command = '';
term.write(need_more_lines ? "... " : ">>> ");