3 Star 0 Fork 0

Gitee 极速下载/python-koans

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gregmalcolm/python_koans
Clone or Download
contemplate_koans.py 1.23 KB
Copy Edit Raw Blame History
#!/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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/python-koans.git
git@gitee.com:mirrors/python-koans.git
mirrors
python-koans
python-koans
master

Search