列出变量与因素的所有可能组合
因此,我正在尝试考虑如何列出5个变量的所有可能组合(具有设定值和第二个属性,例如收费,因此,例如,我将拥有x = 100,并且具有 + +的费用状态1)每个变量都有不同的因素(因此x可以在1到4之间变化,y仅在1到2之间)。 最后,我想拥有一个列表,其中包括变量的组合以及所有类似的总价值: 4 x+2 y+3*z = 1400(3+)
这可能吗?我试图将头缠绕在这个问题上,或者如果其中有太多变量。 我是初学者,所以像我愚蠢一样解释。
谢谢
So I am trying to think of how I can list all possible combinations of 5 variables (that have a set value AND a second property, like a charge for example, so for example I would have x = 100 and has a charge state of +1) with different factors to each variable (so x can vary between 1 and 4, y only between 1 and 2).
At the end I would like to have a list with the combination of variables and the summed value of all like this:
4x+2y+3*z = 1400 (3+)
Is this possible? I am trying to wrap my head around this or if there are too many variables in this.
I am a beginner, so explain it like I am dumb.
Thx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论