Commit 57d79cb3 by BellCodeEditor

auto save

parent 52b4cfd5
Showing with 10 additions and 29 deletions
n = int(input())
k = 0
while n>0:
m = int(input())
if m>k: # 获得最大值
k = m
n = n-1
print(k)
n = int(input())
k = 101
while n>0:
m = int(input())
if m<k: # 获得最小值
k = m
n = n-1
print(k)
n = int(input())
max = 0
min = 1001
while n>0:
m = int(input())
if max<m: #获得最大值
max = m
if min>m: #获得最小值
min = m
n = n-1
print(max-min)
import turtle来覅哦i进去看咯iVS反对x
pen=turtle.Pen()
list=["green","blue","red"]
pen.speed(90)
for i in range(300):
pen.color(list[i%3])
pen.forward(i)
pen.left(91)
turtle.done()
\ 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