2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
8
Task/Program-name/Elena/program-name.elena
Normal file
8
Task/Program-name/Elena/program-name.elena
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#import system.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
console writeLine:system'commandLine. // the whole command line
|
||||
|
||||
console writeLine:('program'arguments@0). // the program name
|
||||
].
|
||||
|
|
@ -3,8 +3,8 @@
|
|||
import sys
|
||||
|
||||
def main():
|
||||
program = sys.argv[0]
|
||||
print "Program: %s" % program
|
||||
program = sys.argv[0]
|
||||
print("Program: %s" % program)
|
||||
|
||||
if __name__=="__main__":
|
||||
main()
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
import inspect
|
||||
|
||||
def main():
|
||||
program = inspect.getfile(inspect.currentframe())
|
||||
print "Program: %s" % program
|
||||
program = inspect.getfile(inspect.currentframe())
|
||||
print("Program: %s" % program)
|
||||
|
||||
if __name__=="__main__":
|
||||
main()
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue