Commit 3d32125b by BellCodeEditor

auto save

parent 3a19fb00
Showing with 15 additions and 1 deletions
# strl="bellcode makcool"
# 用遍历列表strl
# for i in range(len(strl)):
# print(strl[i])
#取出 de mk
import random
a=random.randint(1,4)
print(a)
\ No newline at end of file
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
# 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布: # 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布:
a=['吕布'] a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操'] b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
print(b[2:5])
c=b[2:5]
a.extend(c)
print(a)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment