source: java2python/core/test/testcode/ForIfCase.py@ 404

Last change on this file since 404 was 404, checked in by wouter, 2 years ago

#122 refactoring, creating separate packages for java core and jackson-translator (jackson-t)

File size: 631 bytes
Line 
1import sys
2from typing import List
3
4class ForIfCase:
5 @staticmethod
6 def main(args:List[str]) -> None:
7 res:str = ""
8 n:int = 1
9 while n < 10:
10 res=res + str(n)
11 for _ in [1]:
12 if n == 0:
13 res=res + " "
14 break
15 if n == 0 or n == 1:
16 res=res + "-"
17 if n == 0 or n == 1 or n == 2:
18 pass
19 if n == 0 or n == 1 or n == 2 or n == 3:
20 res=res + "%"
21 break
22 if n == 0 or n == 1 or n == 2 or n == 3:
23 pass
24 if n > 5:
25 res=res + "*"
26 n=n + 1
27 for x in ["a","b","c"] :
28 x:str = x
29 res=res + x
30 sys.stdout.write(res+'\n')
31if __name__ == "__main__":
32 ForIfCase.main(sys.argv[1:])
Note: See TracBrowser for help on using the repository browser.