Commit eeb91152 by BellCodeEditor

auto save

parent 2e0274e0
Showing with 32 additions and 2 deletions
steamer={'第一格':'猪八戒'}
steamer['第一格']='唐三藏'
steamer['第二格']='假行者'
steamer['第三格']='沙和尚'
steamer['第四格']='猪八戒'
print(steamer)
print(steamer['第四格'])
\ No newline at end of file
......@@ -2,8 +2,8 @@
import turtle
screen=turtle.Screen()
pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?")
size=int(size)
size=screen.textinput("提示","你想要多大的魔法阵呀?")
size=int(Size)
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
......
import turtle
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,360)
turtle.done
\ No newline at end of file
import random
j=0
k=0
l=0
for i in range(3000):
x=random.randint(8,10)
if x==8:
j=j+1
if x==9:
k=k+1
if x==10:
l=l+1
print(j,k,l)
\ 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