From 140a078e7beab4ba14d244ec887e51615eafdc01 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 24 May 2026 18:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=95=20Add=20new=20basic=20test=20scrip?= =?UTF-8?q?ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basic_tests/list_test.py | 8 ++++++++ basic_tests/random_test.py | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 basic_tests/list_test.py create mode 100644 basic_tests/random_test.py diff --git a/basic_tests/list_test.py b/basic_tests/list_test.py new file mode 100644 index 0000000..a45f547 --- /dev/null +++ b/basic_tests/list_test.py @@ -0,0 +1,8 @@ +#!/usr/bin/env python3 + +if __name__ == '__main__': + list1 = list(range(10)) + print(list1) + + list2 = [i for i in range(10, 20)] + print(list2) diff --git a/basic_tests/random_test.py b/basic_tests/random_test.py new file mode 100644 index 0000000..16db42b --- /dev/null +++ b/basic_tests/random_test.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 +import random + +if __name__ == '__main__': + print(random.randrange(1, 10)) + print(random.randrange(1, 10)) + print(random.randrange(1, 10))