From 396971df2cb3b938b7acb0cc486f6549f6c2a875 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 20 May 2023 09:06:32 +0800 Subject: [PATCH] save project --- __pycache__/func.cpython-37.pyc | Bin 0 -> 278 bytes func.py | 8 ++++++++ sdf.py | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 __pycache__/func.cpython-37.pyc create mode 100644 func.py create mode 100644 sdf.py diff --git a/__pycache__/func.cpython-37.pyc b/__pycache__/func.cpython-37.pyc new file mode 100644 index 0000000..f4894d9 Binary files /dev/null and b/__pycache__/func.cpython-37.pyc differ diff --git a/func.py b/func.py new file mode 100644 index 0000000..573d1a2 --- /dev/null +++ b/func.py @@ -0,0 +1,8 @@ +def sum(money): + count=0 + for i in money: + count+=i + return count +# prince=[18,28,38,47] +# i=sun(price) +# print(i) \ No newline at end of file diff --git a/sdf.py b/sdf.py new file mode 100644 index 0000000..c96d182 --- /dev/null +++ b/sdf.py @@ -0,0 +1,4 @@ +import func +fenshu=[12,44,69,23,35] +zf=func.sum(fenshu) +print(zf/len(fenshu)) \ No newline at end of file -- libgit2 0.25.0