Commit 213923aa by BellCodeEditor

save project

parent f1de9412
Showing with 59 additions and 0 deletions
string = "to be or not to be that is a question"#定义变量存储字符串
lis=string.split(" ")#使用分割函数将字符串转为列表
count={}#定义一个空字典
for x in lis:#遍历列表
if x not in count:#判断列表元素是否在字典中
count[x]=1
else:
count[x]+=1
print(count)
\ No newline at end of file
import turtle as f
f.speed(0)
f.pensize(10)
f.setheading(90)
f.penup()
f.goto(-90,0)
f.pendown()
f.setheading(0)
for i in range(3):
f.forward(180)
f.left(120)
f.penup()
f.goto(0,0)
f.pendown()
f.fillcolor("blue")
f.begin_fill()
f.circle(50)
f.end_fill()
f.penup()
f.goto(0,0)
f.pendown()
f.pencolor("black")
f.setheading(90)
f.forward(145)
f.hideturtle()
f.done()
\ No newline at end of file
from turtle import *
sped
penup()
goto(-300,0)
write("[中国加油]",font=("宋体",100,"bold"))
hideturtle()
done()
q = int(input())
(int(q))
s = int(input())
(int(s))
g = int(input())
(int(s))
if q > s*g:
print("True")
else:
print("False")
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