This commit is contained in:
blueloveTH 2023-01-29 06:12:36 +08:00
parent 2008ecbd0f
commit f9703b54cc
3 changed files with 11 additions and 2 deletions

View File

@ -118,6 +118,7 @@ public:
break; break;
} }
buff.push_back(c); buff.push_back(c);
continue;
} else { } else {
break; break;
} }

View File

@ -22,5 +22,11 @@ assert f(2) == 2
exec( exec(
"exec('a = eval(\"3 + 5\")')" "exec('a = eval(\"3 + 5\")')"
) )
assert a == 8
assert a == 8 def f():
b = 1
exec(
"exec('b = eval(\"3 + 5\")')"
)
assert b == 8

View File

@ -21,4 +21,6 @@ s = f'''->->{s}<-<-
{123} {123}
''' '''
assert s == '->->asdasd\nasds1321321321测试\\测试<-<-\n123\n' assert s == '->->asdasd\nasds1321321321测试\\测试<-<-\n123\n'
assert r''' ' ''' == " ' "