Commit 2e4bea1f by BellCodeEditor

auto save

parent 027d3568
北京,上海,广州,深圳
import random
new_list = []
for i in range(10):
new_list.append(random.randint(1,100))
print(new_list)
def name():
pass
name()
\ No newline at end of file
message = "诺依,周末一起去看动漫展吧!" import random
new_list = []
# 请对message进行遍历,取出所有元素 for i in range(10):
new_list.append(random.randint(1,100))
print(new_list)
s = len(new_list)
i = 0
for m in range(s-1):
i = m
for n in range(m,s):
if new_list[n] < new_list[i]:
i = n
new_list[m],new_list[i] = new_list[i],new_list[m]
print(new_list)
\ No newline at end of file
12345
\ No newline at end of file
++ "b/\345\234\260\345\220\215.csv"
北京 上海 广州 深圳
北京 上海 广州 深圳
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