aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test.py
diff options
context:
space:
mode:
authorHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
committerHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
commit4838df315931bb883f704ec3e1abe2685f296cdf (patch)
tree57a8550c4cd5338f1126364bb518c6cde8d96e7d /test.py
parentdb74ade0234a40c2120ad5f2a41bee50ce13de02 (diff)
downloadHydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz
HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip
😀
Diffstat (limited to 'test.py')
-rw-r--r--test.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/test.py b/test.py
deleted file mode 100644
index 882ed9a..0000000
--- a/test.py
+++ /dev/null
@@ -1,18 +0,0 @@
-import random
-
-# 生成一个随机整数
-num = random.randint(1, 10)
-print(num)
-
-# 从序列中随机选择一个元素
-fruits = ['apple', 'banana', 'orange']
-fruit = random.choice(fruits)
-print(fruit)
-
-# 打乱序列中元素的顺序
-random.shuffle(fruits)
-print(fruits)
-
-# 生成一个 0 到 1 之间的随机小数
-r = random.uniform(1,2)
-print('%.2f' % r)