Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박선하
/
Git_Branch
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박선하
2021-09-30 04:05:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
678dfecedb7a30fc64654adb0074aa9ee22b3d0d
678dfece
1 parent
2014d29b
Add exit function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
echo.py
echo.py
View file @
678dfec
1
-
print
(
"*Input text*"
+
'
\n
'
)
1
+
import
sys
2
2
3
-
text
=
input
()
3
+
print
(
"*Input text or 'exit'*"
+
'
\n
'
)
4
-
print
(
text
)
4
+
5
+
while
True
:
6
+
text
=
input
()
7
+
if
(
text
==
"exit"
):
8
+
sys
.
exit
()
9
+
print
(
text
+
'
\n
'
)
...
\ No newline at end of file
...
\ No newline at end of file
...
...
Please
register
or
login
to post a comment