源码文件 a8.py # -*- coding: cp936 -*- #第八章----数字0~9的奇妙变换 #《c趣味编程》58-68题 #21:48 2006-11-4 from collections import deque from math import log…