Commit d1d207ef by BellCodeEditor

auto save

parent 85402d73
Showing with 23 additions and 14 deletions
#定义一个函数sum_numbers() a = input ("输入姓名")
#要求这个函数能接收一个名为num的整型参数 b = input ("输入爱好")
#要求这个函数能计算1+2+3+……+num的结果 c = input ("输入目标")
print ("姓名")
print ("a")
aet peacn(n) print ("爱好")
if n == 10: print ("b")
return 1 print ("目标")
num =(peanch(n=1)=1)*2 print ("c")
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