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
eddc92a6
authored
Jul 22, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
51a4cd42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
KJJJNJK.PY
ctrl.py/jn.py
func.py
KJJJNJK.PY
0 → 100644
View file @
eddc92a6
file
=
open
(
r"C:\Users\Administrator\Desktop\text.txt"
,
'w'
,
encoding
=
"utf-8"
)
file
.
write
(
'jntm'
)
file
.
close
()
\ No newline at end of file
ctrl.py/jn.py
0 → 100644
View file @
eddc92a6
func.py
View file @
eddc92a6
def
new_input
():
def
new_input
():
list
=
[]
total
=
[]
while
True
:
while
True
:
unit
=
input
(
"请输入:
"
)
b
=
input
(
"请输入数值
"
)
if
unit
==
'q'
:
if
b
==
"q"
:
break
break
else
:
try
:
total
.
append
(
unit
)
b
=
int
(
b
)
print
(
total
)
except
:
new_input
()
print
(
"输入错误"
)
\ No newline at end of file
else
:
list
.
append
(
b
)
return
list
def
s
(
o
):
zong
=
0
for
i
in
o
:
zong
=
zong
+
1
return
zong
#亻尔女子
\ 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