Last change
on this file since 1271 was 353, checked in by wouter, 2 years ago |
#110 added small python helloworld example. Compiled it to targz and added as test.
|
File size:
406 bytes
|
Line | |
---|
1 | import sys
|
---|
2 | from typing import List
|
---|
3 | class HelloWorld:
|
---|
4 | '''
|
---|
5 | Test for translation to python.<br>
|
---|
6 | Extra line for multiline-test.
|
---|
7 | '''
|
---|
8 | __username:str = "Jan"
|
---|
9 | __lastname:str = "Coens"
|
---|
10 |
|
---|
11 | @staticmethod
|
---|
12 | def main(args:List[str]) -> None:
|
---|
13 | sys.stdout.write("Hello " + HelloWorld.__username + "!")
|
---|
14 |
|
---|
15 | if __name__ == "__main__":
|
---|
16 | HelloWorld.main(sys.argv[1:])
|
---|
17 |
|
---|
18 | def helloworld() :
|
---|
19 | HelloWorld.main(sys.argv[1:])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.