Commit f1645995 by BellCodeEditor

auto save

parent 05e7d622
# """
# a=0 #adlsfjalsd
# if sk sdfas
# """
# print('''小明%
# 岁了''')
# __="kfkf"
# # # a=34
# # # # print(float(a))
# # # print(4 is 5)
# # # import turtle as t
# # # import random as r
# # # r.randint()
# # # if a==2:
# # # pass
# # for i in range(10):
# # if i==3:
# # print(i)
# # continue
# # for k in range(3):
# # if k==2:
# # print(k)
# # break
# # from turtle import Pen:
# # # Pen.pencolor()
# # print(not False or 2 and 5)
# # print(1 and 2 or 6 or not 5)
# print(9999//3600,9999%3600//60,9999%3600%60,sep=":")
# # import turtle
# # turtle.
# a=2032.45234
# print("我今年%08.2f岁了"%a)
# print('sdlj"fls"\ndf')
# a=[2,3,43,5,65]
# print(a[-1:-3:-1])
# print(type(3.5))
# a=int(float("3.4"))
# b=eval(input())
# # print(b)
# print(float(True))
a={'sk':3,'kk':4}
a['sk']=5
print(a)
\ No newline at end of file
def kk():
t=[]
while True:
num=input("价格:")
if num=='q':
break
else:
try:
num=float(num)
except:
print("输入错误!")
else:
t.append(num)
return t
def sum(a):
qh=0
for i in a:
qh=qh+i
return qh
import func
a=func.kk()
tt=func.sum(a)
print(tt)
\ 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