Skip to content

Commit

Permalink
ਕੋਈ ਵੀ ਨਹੀਂ
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Oct 12, 2018
1 parent 30ffb80 commit 055790b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
11 changes: 11 additions & 0 deletions ਲੱਸੀ/ਇਮਤਹਾਨ/test.汉.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
a = 百二十三
b =

定义 c ( x , y ) :
打印 ( x , y )
如果 x > y :
返回 x * y
否则 :
返回

打印 ( c ( a , b ) )
33 changes: 27 additions & 6 deletions ਲੱਸੀ/ਇਮਤਹਾਨ/ਇਮਤਹਾਨ.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import os

from ਲੱਸੀ.ਵਾਧਾ.ਪੈਧਾਨ_੩ import ਪੈਧਾਨ_੩_ਵਿਆ

ਵਿਆ = ਪੈਧਾਨ_੩_ਵਿਆ()
ਵਿਆ.actualizar_trads(['த', 'ગુ', 'ਪੰ', 'हिं', 'fr', 'kaq', 'ار', 'فا', '汉'])
ਵਿਆ.actualizar_trads(['த', 'ગુ', 'ਪੰ', 'हिं', 'fr', 'kaq', 'ار', 'فا', '汉', 'ml'])
c = """
a = [1, 2, 3, 4, 5, 6, 7, 12587]
x = True
if not x:
Expand All @@ -17,12 +20,30 @@ def test(x, y):
return False
"""
c2 = """
a = 123.4
b = 10
def c(x, y):
print(x, y)
if x > y:
return x * y
else:
return False
fr = ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c, 'fr', 'en')
print(c(a, b))
"""

# ਪੈਧਾਨ_੩_ਵਿਆ().ਦਸਤਾਵੇਜ਼_ਅਨੁਵਾਦ(os.path.join(os.path.split(__file__)[0], 'test.汉.py'), 'ار', '汉')

fr = ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c2, 'fr', 'en')
print(fr)
# exec(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(fr, 'en', 'fr'))
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c, 'ار', 'en'))
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c, 'த', 'en'))
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c, '汉', 'en'))
# ਪੈਧਾਨ_੩_ਵਿਆ().traduire_document('c.py', 'ار', 'en')
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c2, 'ار', 'en'))
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c2, 'த', 'en'))
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c2, 'हिं', 'en'))
print(ਵਿਆ.ਸੰਕੇਤ_ਅਨੁਵਾਦ(c2, '汉', 'en'))


1 change: 1 addition & 0 deletions ਲੱਸੀ/ਸੰਸਕਰਣ.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0

0 comments on commit 055790b

Please sign in to comment.