From ce2d596009c90b500d7152dbb53a640d7f746d18 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 31 Jul 2021 11:12:19 +0800 Subject: [PATCH] save project --- ddd.py | 8 ++++++++ diy3.py | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ddd.py diff --git a/ddd.py b/ddd.py new file mode 100644 index 0000000..0aa1fa8 --- /dev/null +++ b/ddd.py @@ -0,0 +1,8 @@ +import random + + + + +key = "信息加密好酷呀" +str = random.choice(key) +print(str) \ No newline at end of file diff --git a/diy3.py b/diy3.py index 83eacf4..bdc4b2e 100644 --- a/diy3.py +++ b/diy3.py @@ -1,3 +1,4 @@ message = "诺依,周末一起去看动漫展吧!" - +message[0] +len(message)-1 # 请使用索引的知识,取出message所有元素(不用遍历的方式) \ No newline at end of file -- libgit2 0.25.0