|
the formula as below: list1=[(str)((int)(s+e+n+d))+"*"+(str)((int)(m+o+r+e))+"=="+(str)((int)(m+o+n+e+y)) for s,e,n,d,m,o,r,y in permutati**('123456789', 8)]
现在这样的一个程序是可以执行,也是OK的, 但是我现在准备把这个给扩展一下,就是现在我传入的是一个string, 之前是“send * more = money”固定的,
现在我希望传入一个随机的,比如说“sends * less = nonmoney”这个样子,显然现在list里面出入固定的变量是不可行的,有没有好方法去解决这个问题?
谢谢
|
|