http://www.ps.uni-saarland.de/~duchier/python/prolog.py 转载于:https://my.oschina.net/errord/blog/342932