From 48080d747ff123033c8e0cd1b4fb4a7c5adb9846 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Wed, 7 Sep 2022 14:34:04 +0800 Subject: [PATCH] added scratch --- csst_proto/scratch.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 csst_proto/scratch.py diff --git a/csst_proto/scratch.py b/csst_proto/scratch.py new file mode 100644 index 0000000..394e31f --- /dev/null +++ b/csst_proto/scratch.py @@ -0,0 +1,33 @@ +import numpy as np + + +def print_some_numbers(start: int, stop=10): + """ this function prints some numbers + + Parameters + ---------- + start: int + start number + stop: int + stop number + + Notes + ----- + this algorithm ... + """ + for i in np.arange(start, stop): + print(i) + return + + +class AClass: + def __init__(self): + self.a = 1 + + def print_a(self): + if True: + print(self.a) + + +if __name__ == "__main__": + print_some_numbers(start=1, stop=5) -- GitLab