Commit f183947d by BellCodeEditor

auto save

parent 50f8a667
Pipeline #10793 failed in 0 seconds
Showing with 23 additions and 0 deletions
import random
a=0
b=0
c=0
for i in range(3000):
x=random.randint(8,10)
if x==8:
a=a+1
elif x==9:
b=b+1
else:
c=c+1
print(a,b,c)
\ No newline at end of file
import random
list=["悟空","小贝","波奇","诺依"]
a=random.choice(list)
print(a)
b=random.random()
print(b)
c=random.randint(3,8)
print(c)
\ 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