Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_1
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
1fc52122
authored
Oct 23, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
0a3b07d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
func.py
二
func.py
View file @
1fc52122
total
=
[]
s1
=
{
'3'
:
2
,
'3'
:
2
,
'6'
:
2
,
'8'
:
2
}
s2
=
{
'4'
:
2
,
'5'
:
2
,
'6'
:
2
,
'7'
:
2
}
while
True
:
while
True
:
unit
=
input
(
"请输入:"
)
for
k
,
v
in
keys
:
if
unit
==
'q'
:
print
(
i
)
break
for
x
k
,
v
in
values
:
else
:
print
(
x
)
total
.
append
(
unit
)
pr
\ No newline at end of file
二
View file @
1fc52122
def new_input():
s1={'3':2,'3':2,'6':2,'8':2}
def new_input():
s1={'3':2,'3':2,'6':2,'8':2}
asd=[]
s2={'4':2,'5':2,'6':2,'7':2}
while True:
while True:
sn = input("请输入: ")
for i k,v in keys:
if sn == 'q':
print(i)
break
for x k,v in v.values:
else:
print(x)
asd.append(sn)
\ 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