Commit 0976eb33 by BellCodeEditor

auto save

parent c593e827
Showing with 13 additions and 4 deletions
# 勇于挑战的创造师,请运行这段代码,看看能不能将颜良、文丑加入战场?
a= ['华雄']
a.append('颜良','文丑')
print(a)
#自己生成一个1-500的列表,并且计算出列表内所有的偶数和。
a=[]
for i in range(1,101):
a.append(i)
s=0
for i in a:
if i%2==0:
s=s+i
print(s)
\ No newline at end of file
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