惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
D
Docker
云风的 BLOG
云风的 BLOG
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
Google Developers Blog
GbyAI
GbyAI
T
Tailwind CSS Blog
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
C
Check Point Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
N
Netflix TechBlog - Medium
B
Blog RSS Feed
腾讯CDC
aimingoo的专栏
aimingoo的专栏

博客园 - 高天蒲

前端 mysql常见问题 互联网数据的挖掘和分析 针对wordpress的二次开发 datejs lib awk Optimal Logging python 复制文件 PHP笔记 grep 笔记 svn笔记 网页内容爬取:如何提取正文内容 快速开发的要素 Javascript 类、命名空间、代码组织 武士与黑客 ImageMagick Errors: Convert PDF to Images web.py学习随笔 HTML5 and CSS3 做前端的一些小工具
提高勾搭的成功几率(瞎写的,打扰了)
高天蒲 · 2011-06-21 · via 博客园 - 高天蒲

1.单身 注明2,不注明1,注明不0

2.同城 注明1,不注明0

3.熟人 共同关注2,关注1,被关注0
单身为个人属性同城为,两人结合的属性熟人,发起者与被配对者的属性 me-male, me-famale
字段表示:maleId | femaleId | level

1 foreach(var male in males){
2 foreach(var female in females){
3 var level = male.status + femail.status;
4
5 if(male.city!=null && female.city!=null){
6 if(male.city== female.city){
7 level = level + 2
8 }else
9 {
10 level= level + 0
11 }
12 }
13 }else{
14 level = level + 1;
15 }
16
17 var releation_male = me and male;
18 var relation_female= me and femal;
19 level = level + releation_male + relation_female
20
21 insert into table male.id, female.id, level.
22 }
23 }