Fetch the repository succeeded.
#!/usr/bin/env python
#
# Acknowledgment:
#
# Python Koans is a port of Ruby Koans originally written by Jim Weirich
# and Joe O'brien of Edgecase. There are some differences and tweaks specific
# to the Python language, but a great deal of it has been copied wholesale.
# So thanks guys!
#
import sys
if __name__ == '__main__':
if sys.version_info < (3, 0):
print("\nThis is the Python 3 version of Python Koans, but you are " +
"running it with Python 2!\n\n"
"Did you accidentally use the wrong Python script? \nTry:\n\n" +
" python3 contemplate_koans.py\n")
else:
if sys.version_info < (3, 7):
print("\n" +
"********************************************************\n" +
"WARNING:\n" +
"This version of Python Koans was designed for " +
"Python 3.7 or greater.\n" +
"Your version of Python is older, so you may run into " +
"problems!\n\n" +
"But let's see how far we get...\n" +
"********************************************************\n")
from runner.mountain import Mountain
Mountain().walk_the_path(sys.argv)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。