如何制作一个有助于根据年龄和身高找到匹配对的代码?
我在寻找同一件事 https://stackoverflow.com/a/a/72842963/728334455 我的问题是制定条件,以便匹配的对应在古老的10岁之内,并且在10个高度差异之内,我需要代码才能找到达到这两个条件的匹配的随机匹配对。有人可以帮我吗?谢谢
I was looking for the same thing https://stackoverflow.com/a/72842963/18334455 but my problem is how to make a condition so that the matched pair should be within 10 years of age-old and within 10 height difference, I need my code to find the matched randomly matched pair that achieve both conditions. Can anybody help me with this? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在IF条件下非常简单,这完全取决于您的数据类型,但从理论上讲,这可能是这样的:
Pretty straight forward with an if condition, it all depends on your data types, but it could in theory look like this: