fix format

This commit is contained in:
Donaldttt
2022-07-02 17:21:27 -04:00
parent 9f496a7887
commit 708a38b921
+2 -2
View File
@@ -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: