oprava u8
This commit is contained in:
parent
f08b7b7c28
commit
6a2446618a
@ -1,3 +1,6 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class Node:
|
class Node:
|
||||||
def __init__(self, text):
|
def __init__(self, text):
|
||||||
self.text = text
|
self.text = text
|
||||||
@ -9,11 +12,17 @@ class Node:
|
|||||||
|
|
||||||
|
|
||||||
def read_line():
|
def read_line():
|
||||||
try:
|
line = sys.stdin.readline()
|
||||||
return input()
|
if line == "":
|
||||||
except EOFError:
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if line.endswith("\n"):
|
||||||
|
line = line[:-1]
|
||||||
|
if line.endswith("\r"):
|
||||||
|
line = line[:-1]
|
||||||
|
|
||||||
|
return line
|
||||||
|
|
||||||
|
|
||||||
class Tree:
|
class Tree:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user