Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Programming_Project_Group_14
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
s2032074
Programming_Project_Group_14
Commits
e365c49d
"src/dotViewer.ts" did not exist on "45aa6d0499c7434ca8a8812f17248cf07f0c78e0"
Commit
e365c49d
authored
4 years ago
by
s2299100
Browse files
Options
Downloads
Patches
Plain Diff
put the whole ass file in
parent
429f72b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
save.py
+23
-0
23 additions, 0 deletions
save.py
with
23 additions
and
0 deletions
save.py
0 → 100644
+
23
−
0
View file @
e365c49d
## this makes some test variables
max_length
=
5
seq1time
=
2.45
seq2time
=
5.32
seq3time
=
3.42
seq4time
=
35
finalscore
=
69
username
=
"
peter
"
user_id
=
2
#the function for saving something
def
filelog
(
user_id
):
filename
=
"
results_user_
"
+
str
(
user_id
)
+
"
.txt
"
f
=
open
(
filename
,
"
x
"
)
f
.
write
(
"
name is
"
+
username
+
"
\n
"
)
f
.
write
(
"
user ID is
"
+
str
(
user_id
)
+
"
\n
"
)
f
.
write
(
"
maximum length is
"
+
str
(
max_length
)
+
"
\n
"
)
f
.
write
(
"
sequence 1 time is
"
+
str
(
seq1time
)
+
"
\n
"
)
f
.
write
(
"
sequence 2 time is
"
+
str
(
seq2time
)
+
"
\n
"
)
f
.
write
(
"
sequence 3 time is
"
+
str
(
seq3time
)
+
"
\n
"
)
f
.
write
(
"
sequence 4 time is
"
+
str
(
seq4time
)
+
"
\n
"
)
f
.
write
(
"
final score is
"
+
str
(
finalscore
)
+
"
\n
"
)
filelog
(
user_id
)
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