- #!/bin/env python
- #coding: utf-8
- """
- 甲给乙45本书,甲的书本和乙相等。乙给甲45本,甲是乙的2倍
- 问甲乙原来各多少本
- 可以用加减乘除
- """
- print [(x,x-45-45) for x in range( 90,9999 ) if x + 45 == ( x-45-45-45) * 2]
- #该片段来自于http://www.codesnippet.cn/detail/220820135285.html
来源: http://www.codesnippet.cn/detail/220820135285.html