File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,20 @@ <h3 class="m-3">Pyarmor Sandbox</h3>
7070 id ="scriptContent "
7171 max-length ="8096 "
7272 min-length ="1 "
73- style ="height: 30rem "> print('Hello world!')</ textarea >
73+ style ="height: 30rem "> import sys
74+
75+ def sum2(a, b):
76+ return a + b
77+
78+ def main(msg):
79+ a = 2
80+ b = 6
81+ c = sum2(a, b)
82+ print('%s + %s = %d' % (a, b, c))
83+
84+ if __name__ == '__main__':
85+ main('pass: %s' % data)
86+ </ textarea >
7487 < label for ="scriptContent "> Script(maximum 8K)</ label >
7588 </ div >
7689 </ div >
Original file line number Diff line number Diff line change @@ -76,7 +76,20 @@ <h3 class="m-3">Pyarmor 高级功能沙盒</h3>
7676 id ="scriptContent "
7777 max-length ="8096 "
7878 min-length ="1 "
79- style ="height: 30rem "> print('Hello world!')</ textarea >
79+ style ="height: 30rem "> import sys
80+
81+ def sum2(a, b):
82+ return a + b
83+
84+ def main(msg):
85+ a = 2
86+ b = 6
87+ c = sum2(a, b)
88+ print('%s + %s = %d' % (a, b, c))
89+
90+ if __name__ == '__main__':
91+ main('pass: %s' % data)
92+ </ textarea >
8093 < label for ="scriptContent "> 脚本内容(最大8K)</ label >
8194 </ div >
8295 </ div >
You can’t perform that action at this time.
0 commit comments