From f1645995b38946044ca99ac19a38edb843b74c8b Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 25 Aug 2021 19:13:51 +0800 Subject: [PATCH] auto save --- __pycache__/func.cpython-37.pyc | Bin 0 -> 526 bytes dd.py | 45 +++++++++++++++++++++++++++++++++++++++++++++ func.py | 19 +++++++++++++++++++ score.py | 4 ++++ 4 files changed, 68 insertions(+) create mode 100644 __pycache__/func.cpython-37.pyc create mode 100644 dd.py create mode 100644 func.py create mode 100644 score.py diff --git a/__pycache__/func.cpython-37.pyc b/__pycache__/func.cpython-37.pyc new file mode 100644 index 0000000..8779be3 Binary files /dev/null and b/__pycache__/func.cpython-37.pyc differ diff --git a/dd.py b/dd.py new file mode 100644 index 0000000..bb75fd1 --- /dev/null +++ b/dd.py @@ -0,0 +1,45 @@ +# """ +# 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 diff --git a/func.py b/func.py new file mode 100644 index 0000000..8d41e0d --- /dev/null +++ b/func.py @@ -0,0 +1,19 @@ +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 diff --git a/score.py b/score.py new file mode 100644 index 0000000..4011d0e --- /dev/null +++ b/score.py @@ -0,0 +1,4 @@ +import func +a=func.kk() +tt=func.sum(a) +print(tt) \ No newline at end of file -- libgit2 0.25.0