Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua-A
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2023 Competition
Software Tools
Tsinghua-A
Commits
d796b6cb
Commit
d796b6cb
authored
1 year ago
by
Ziqian
Browse files
Options
Downloads
Patches
Plain Diff
read input
parent
ec964cc0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
seq.py
+13
-1
13 additions, 1 deletion
seq.py
with
13 additions
and
1 deletion
seq.py
+
13
−
1
View file @
d796b6cb
...
...
@@ -100,4 +100,16 @@ def seq_fre_get(input_seq, data_path):
print
(
seq_list
[
i
])
ans_num
=
ans_num
*
len
(
seq_list
[
i
])
print
(
'
可生成条数:
'
,
ans_num
)
return
seq_list
\ No newline at end of file
return
seq_list
def
read_input
(
specie_path
,
input_path
):
with
open
(
specie_path
,
"
r
"
)
as
f
:
tar_specie
=
f
.
read
()
ans
=
[]
with
open
(
input_path
,
"
r
"
)
as
f
:
for
line
in
f
.
readlines
():
line
=
line
.
strip
(
'
\n
'
)
# 去除文本中的换行符
ans
.
append
(
line
)
input_seq_fr
=
ans
[
0
]
input_cdr
=
ans
[
1
:]
return
tar_specie
,
input_seq_fr
,
input_cdr
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment