Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-2_DIY1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
08f3f557
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3a450d9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
bug.py
bug.py
View file @
08f3f557
...
...
@@ -11,7 +11,22 @@
# pen.hideturtle()
# turtle.done()
for
a
in
range
(
1
,
10
):
for
i
in
range
(
1
,
a
+
1
):
print
(
a
,
'*'
,
i
,
'='
,(
a
*
i
),
end
=
" "
)
print
()
\ No newline at end of file
# for a in range(1,10):
# for i in range(1,a+1):
# print(a,'*',i,'=',(a*i),end=" ")
# print()
# for i in range(6):
# print(i,end=" ")
# a=0
# while True:
# print(a,end=" ")
# a+=1
# if a==6:
# break
a
=
int
(
input
(
"请输入奶牛的头数:"
))
print
(
a
,
"头奶牛七天可产"
,
a
*
20
*
7
,
"千克奶"
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment