forked from M-Labs/nac3
1
0
Fork 0
nac3/nac3standalone/mandelbrot.py

21 lines
296 B
Python
Raw Normal View History

2021-09-19 22:54:06 +08:00
class A:
a: int32
def __init__(self, a: int32):
self.a = a
2021-09-19 17:50:01 +08:00
2021-09-19 22:54:06 +08:00
def get_a(self) -> int32:
return self.a
2021-09-19 17:50:01 +08:00
2021-09-19 22:54:06 +08:00
def get_self(self) -> A:
return self
2021-09-19 17:50:01 +08:00
def run() -> int32:
2021-09-19 22:54:06 +08:00
a = A(10)
output(a.a)
2021-09-19 17:50:01 +08:00
2021-09-19 22:54:06 +08:00
a = A(20)
output(a.a)
output(a.get_a())
2020-03-30 22:47:45 +08:00
return 0
2021-08-19 15:30:52 +08:00