fix format
This commit is contained in:
+2
-2
@@ -20,12 +20,12 @@ def basic_paring(data):
|
|||||||
ponetic = data["phonetic"]
|
ponetic = data["phonetic"]
|
||||||
|
|
||||||
print(word)
|
print(word)
|
||||||
|
print()
|
||||||
|
|
||||||
if len(ponetic.items()) > 0:
|
if len(ponetic.items()) > 0:
|
||||||
for _, v in ponetic.items():
|
for _, v in ponetic.items():
|
||||||
print(v, end=" ")
|
print(v, end=" ")
|
||||||
print()
|
print()
|
||||||
print()
|
|
||||||
|
|
||||||
if len(defs) > 0:
|
if len(defs) > 0:
|
||||||
for k in defs:
|
for k in defs:
|
||||||
@@ -45,13 +45,13 @@ def rich_paring(data):
|
|||||||
samples = data["sample_sentence"]
|
samples = data["sample_sentence"]
|
||||||
|
|
||||||
console.print(word, style="bold purple")
|
console.print(word, style="bold purple")
|
||||||
|
print()
|
||||||
|
|
||||||
if len(ponetic.items()) > 0:
|
if len(ponetic.items()) > 0:
|
||||||
for _, v in ponetic.items():
|
for _, v in ponetic.items():
|
||||||
v = v.replace('[', '\[').replace(']', ']')
|
v = v.replace('[', '\[').replace(']', ']')
|
||||||
console.print(v, style="yellow")
|
console.print(v, style="yellow")
|
||||||
print()
|
print()
|
||||||
print()
|
|
||||||
|
|
||||||
if len(defs) > 0:
|
if len(defs) > 0:
|
||||||
for k in defs:
|
for k in defs:
|
||||||
|
|||||||
Reference in New Issue
Block a user