Commit fb991fc3 by BellCodeEditor

auto save

parent f9b6bca9
Showing with 39 additions and 7 deletions
a=int(input())
b=int(input())
sum=0
for i in range(a,b+1):
if i%2==1:
sum=sum+i
print(sum)
\ No newline at end of file
a=int(input())
b=int(input())
print(a//b,a%b,end=" ")
\ No newline at end of file
# a={22,2,3,4,2,3,4,34}
# print(a)
a="dsfs fdjf fdsf"
for i in a.split(" "):
print(i)
\ No newline at end of file
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~
import turtle
pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?")
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
size=turtle.textinput("提示","你想要多大的魔法阵呀?")
size=int(size)
turtle.fillcolor("red")
turtle.circle(size)
turtle.begin_fill()
turtle.circle(size,360,steps=10)
turtle.end_fill()
turtle.circle(size,60)
turtle.circle(size,360,6)
turtle.hideturtle()
turtle.done()
a1 = input('指挥你认罪吗?请回答认罪或者不认:')
a2 = input('柴可夫斯基你认罪吗?请回答认罪或者不认:')
if a1==a2=='认罪':
print('都判 10 年')
elif a1==a2=='不认':
print('都判 3 年')
if a1=='认罪' and a2=='不认':
print('指挥判 1 年,柴可夫斯基判 20 年')
elif a1=='不认' and a2=='认罪':
print('指挥判 20 年,柴可夫斯基判 1 年')
\ 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