Commit 1eb83a74 by BellCodeEditor

auto save

parent 7041ecb8
Showing with 45 additions and 0 deletions
text="hello world"
for i in text:
print(i)
str1="bellcode"
new_text=str1[4:8]
print(new_text)
text=["p","y","t","h","o","n"]
text="".join((text))
print(text)
str1="cwfewf"
str1="fwegeytj"
str_list=list(str1)
str_list.insert(7,str2)
new_str="".join((str_list))
print(new_str)
import random
a=0
b=0
c=0
for i in random(300):
x=random.randint(8,10)
if x==8:
a+=1
elif x==9:
b+=1
else:
c+=1
print(a,b,c)
\ No newline at end of file
'''import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
pen.end_fill()
for i in range(3):
pen.forward(200)
for i in range(10):
print("悟空")
print("悟空")
print("齐天大圣"+"VS"+"")'''
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