Questions tagged «prelude»

1
翻译前奏曲
这是每周挑战2。主题:翻译 编写一个程序或函数,该程序或函数在Prelude中获取程序的源代码,并在Befunge-93中输出等效程序的代码。为了使程序等效,对于任何给定的输入,它都应产生与Prelude程序相同的输出,并且仅当Prelude程序停止时才停止。 输入语言:前奏 Python解释器: 显示代码段 #!/usr/bin/python import sys NUMERIC_OUTPUT = True NUMERIC_INPUT = True try: filename = sys.argv[1] except: print "Usage:", sys.argv[0], "<filename>" raise SystemExit try: inFile = file(filename) except: print "Error when opening", filename raise SystemExit # code is kept as a list of voices, each voice a string …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.