Commit d1d207ef by BellCodeEditor

auto save

parent 85402d73
Showing with 20 additions and 11 deletions
#定义一个函数sum_numbers()
#要求这个函数能接收一个名为num的整型参数
#要求这个函数能计算1+2+3+……+num的结果
a = input ("输入姓名")
b = input ("输入爱好")
c = input ("输入目标")
print ("姓名")
print ("a")
print ("爱好")
print ("b")
print ("目标")
print ("c")
aet peacn(n)
if n == 10:
return 1
num =(peanch(n=1)=1)*2
return num
peanch_num = peanch(1)
print(peach_num)
\ No newline at end of file
a = input('输入长方形的长:')
b = input('输入长方形的宽:')
c = input('输入长方形的高:')
v= float(a)*float(b)*float(c)
print ("长方形的面积为:"v)
total = 10
total += 5
total += 10
print(total)
\ 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