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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
The Cloudflare Blog
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
小众软件
小众软件
量子位
月光博客
月光博客
P
Proofpoint News Feed
IT之家
IT之家
腾讯CDC
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
雷峰网
雷峰网
V
Visual Studio Blog

博客园 - 高天蒲

前端 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 }