From c5c8e2584a3e7dfdd038e53ef6713a50479b5caa Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 27 Nov 2021 14:03:42 +0800 Subject: [PATCH] auto save --- dfdj.py | 7 +++++++ diy2.py | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 dfdj.py create mode 100644 diy2.py diff --git a/dfdj.py b/dfdj.py new file mode 100644 index 0000000..1897917 --- /dev/null +++ b/dfdj.py @@ -0,0 +1,7 @@ +while True: + hd=int(input("时间")) + if hd<2: + p=5 + else: + p=5+2*(hd-2) + print(p) \ No newline at end of file diff --git a/diy2.py b/diy2.py new file mode 100644 index 0000000..c7179bb --- /dev/null +++ b/diy2.py @@ -0,0 +1,7 @@ + # 列3 +# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法 + +for i in range(1,10): + for j in range(1,i+1): + print(j, "*",i,"=",(j*i),end=" ") + print() \ No newline at end of file -- libgit2 0.25.0