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>
70
70
id ="scriptContent "
71
71
max-length ="8096 "
72
72
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 >
74
87
< label for ="scriptContent "> Script(maximum 8K)</ label >
75
88
</ div >
76
89
</ div >
Original file line number Diff line number Diff line change @@ -76,7 +76,20 @@ <h3 class="m-3">Pyarmor 高级功能沙盒</h3>
76
76
id ="scriptContent "
77
77
max-length ="8096 "
78
78
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 >
80
93
< label for ="scriptContent "> 脚本内容(最大8K)</ label >
81
94
</ div >
82
95
</ div >
You can’t perform that action at this time.
0 commit comments