repo.or.cz
/
archive.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update
[archive.git]
/
Apkawa
/
Study
/
pascal
/
archive
/
job1_1
/
job1_1.py
blob
c693cc447dd156c8618f37798d1338822cf8b32a
1
import
os
2
path
=
"job1_1.data"
3
string
=
""
4
i
=
0
5
t
=
0
6
LF
=
10
7
CR
=
13
8
9
f
=
open
(
path
,
"r"
)
10
while True
:
11
char
=
f
.
read
(
1
)
12
os
.
sys
.
stdout
.
write
(
char
)
13
if
len
(
char
):
14
if not
ord
(
char
) ==
32
:
15
string
+=
char
16
if
ord
(
char
) ==
26
:
17
print
"SUB!"
18
else
:
19
break
20
print
string
21