From 56f63dbc2cbcd72c353910b9bd92d9ba3b4c8bab Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Mon, 12 Jul 2021 15:54:46 +0800 Subject: [PATCH] auto save --- 1.py | 8 ++++++++ __pycache__/a.cpython-37.pyc | Bin 0 -> 570 bytes a.py | 10 ++++++++++ func.py | 27 +++++++++++++++++++++++++++ lll.pty | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 1.py create mode 100644 __pycache__/a.cpython-37.pyc create mode 100644 a.py create mode 100644 func.py create mode 100644 lll.pty diff --git a/1.py b/1.py new file mode 100644 index 0000000..34ea7c1 --- /dev/null +++ b/1.py @@ -0,0 +1,8 @@ +import a + +print(a.n1(1,10,2)) + + + + + diff --git a/__pycache__/a.cpython-37.pyc b/__pycache__/a.cpython-37.pyc new file mode 100644 index 0000000..bdb6dbe Binary files /dev/null and b/__pycache__/a.cpython-37.pyc differ diff --git a/a.py b/a.py new file mode 100644 index 0000000..a21f45e --- /dev/null +++ b/a.py @@ -0,0 +1,10 @@ +def n1(m1,m2,m3): + sum=0 + for i in range(m1,m2,m3): + sum +=i + print(sum) + +def n2(name): + print('你好:',name) +def n3(): + print('这是一个没有参数的函数!') \ No newline at end of file diff --git a/func.py b/func.py new file mode 100644 index 0000000..1d21773 --- /dev/null +++ b/func.py @@ -0,0 +1,27 @@ +list=[] +try: + a=int(input('输入一个价格:')) +except: + print('你输入的不是数字!!!') +else: + list.append(a) + print('添加成功!') +print(list) +print('所有的操作结束!') + + + + + + + + + + + + + + + + + diff --git a/lll.pty b/lll.pty new file mode 100644 index 0000000..d7e591f --- /dev/null +++ b/lll.pty @@ -0,0 +1,37 @@ +def sss(): + a='那诺' + b=12 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- libgit2 0.25.0