Commit 8bd7ee21 by BellCodeEditor

save project

parent 940337b7
Showing with 22 additions and 0 deletions
#text=["p","y","t","h","o","n"]
#text="".join(text)
str1="本节课我们学习加密"
str2="用python进行"
str3=list(str1)
str3.insert(7,str2)
str3="".join(str3)
import random
a=0
b=0
c=0
for i in range(3000):
x=random.randint(8,10)
if x==8:
a=a+1
if x==9:
b=b+1
if x==10:
c=c+1
print(a,b,c)
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