Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-3
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
62126542
authored
Jun 04, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
9aaf9216
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
1.py
2.py
hello.py
1.py
0 → 100644
View file @
62126542
a
=
int
(
input
(
"请输入一个十进制数字"
))
b
=
input
(
"请输入想要转换的进制"
)
if
b
==
"二进制"
:
while
a
>
0
:
c
=
a
%
2
a
=
a
//
2
print
(
c
)
if
b
==
"八进制"
:
while
a
>
0
:
c
=
a
%
8
a
=
a
//
8
print
(
c
)
2.py
0 → 100644
View file @
62126542
hello.py
0 → 100644
View file @
62126542
pint
(
"hello world"
)
\ No newline at end of file
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