Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson7_3

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson7_3
  • diy3.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · fc7c17ef
    BellCodeEditor committed 11 months ago
    fc7c17ef
diy3.py 291 Bytes
1 2 3 4 5 6 7 8 9 10
message = "诺依,周末一起去看动漫展吧!"
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
import random
key = "信息加密好酷呀!"
str = random.choice(key)
print(str)

text = "周末一起去欢乐谷吧"
li_text = list(text)
print(li_text)