From 58e08b10e1db50d6ea377925227abe43b7cb4123 Mon Sep 17 00:00:00 2001 From: 644b3f306180332c2cd6a215 <644b3f306180332c2cd6a215@devide> Date: Fri, 28 Apr 2023 04:18:54 +0000 Subject: [PATCH] Auto commit --- main.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 4c0c135..8c7e733 100644 --- a/main.py +++ b/main.py @@ -1 +1,10 @@ -print('欢迎来到 InsCode') \ No newline at end of file +print('欢迎来到 InsCode') +def tri1(sym,row): + for i in range(1,row+1): + print(sym*i) +def tri2(sym,row): + for i in range(1,row+1): + print(' '*(row-i)+(sym+' ')*i) + +tri1('*',6) +tri2('*',6) \ No newline at end of file -- GitLab