diff --git a/diy2.py b/diy2.py index 2bc971e..5c46afd 100644 --- a/diy2.py +++ b/diy2.py @@ -1,4 +1,13 @@ message = "诺依,周末一起去看动漫展吧!" # 请对message进行遍历,取出所有元素 +for i in range(len(message)): + print(message[i]) + + +import random + +key = "我是你ba!" +str = random.choice(key) +print(str) \ No newline at end of file