|
|
发帖数: 1 | 3 试一下 一种方法是求点到空间直线最短距离点 。 空间直线:x=f(z)&y=g(z);. 点 (
x0 y0 z0); 那么答案就是解 argmin(x0y0z0 到 xyz的距离) |
|
发帖数: 1 | 4 华邮重磅社评:现在的新疆即未来中国
联合国人权理事会(UNHRC)的年会即将与25日举行。路透社报导称,为了阻挠UNHRC年
会对新疆再教育营的监督,中共正在展开外交游说行动,把中国(中共政府)在新疆的
一系列做法解释为“反恐”和“去极端化”的“创新方法”。
就在中共官方竭力为新疆正在实施的政策进行辩护的同时,《华盛顿邮报》(
Washington Post)于24日发表的一篇重磅社评警告说,小说“1984”中描述的那种思
想警察与专制体制控制的可怕世界,现在正在新疆成为事实,而且这种情况将会继续扩
散,“现在的新疆正是未来的中国”。
请看详细分析:
http://ulvis.net/Z0 |
|
l****z 发帖数: 29846 | 5 为民主党募款的骗子何其多..
http://www.reuters.com/article/idUSTRE62H4LN20100318?loomia_ow=t0:s0:a49:g43:r3:c0.250000:b30317430:z0
Obama, Clinton fundraiser admits $292 million fraud
Hassan Nemazee, 60, who once ran a private equity firm, admitted in
Manhattan federal court to defrauding Bank of America Corp of more than $142
million, Citigroup Inc of $74.9 million and HSBC Holdings Plc of $74.9
million to pay his debt to Citigroup.
During the plea proceeding, Iranian-born Nemasee, who owned several
multimil |
|
n*****s 发帖数: 6495 | 6 import re
import os
robot = []
not_robot = []
for i in range(0, 10):
page = 'http://www.mitbbs.com/bbsdoc1/Automobile_' + str(i) + '01_0.html'
os.system("curl " + page + " > 'page.html'")
f = open('page.html', encoding='iso-8859-1')
content = f.readlines()
for line in content:
m = re.findall(r'class="news">' + '([a-zA-Z0-9]*)' + '
class="black10">', line)
for id in m:
if id in robot:
os.system("echo " + id + " >> robot.... 阅读全帖 |
|
g*****9 发帖数: 349 | 7 请问run了以后有这个提示是什么原因呢? 菜鸟在学python,请不要踩啊。。。
runfile('C:/Users/Joe/.spyder2-py3/temp.py', wdir='C:/Users/Joe/.spyder2-py3
')
File "C:/Users/Hoe/.spyder2-py3/temp.py", line 13
m = re.findall(r'class="news">' + '([a-zA-Z0-9]*)' + '
^
SyntaxError: EOL while scanning string literal |
|
m****v 发帖数: 84 | 8 用pl写的是 $line =~ m!.*(http|https|ftp)://([a-z0-9\-\.]+)(.*)!i
当时认为第二个匹配组就是域名。很明显,这个写法挂了。。。因为域名不能包含前缀
,比如
xxx.mitbbs.com只能返回mitbbs.com,而yyy.mitbbs.edu.cn返回mitbbs.edu.cn。
求教大家怎么做,谢谢。 |
|
r*******e 发帖数: 7583 | 9 m!.*(http|https|ftp)://(.*?)\.([a-z0-9\-\.]+)(.*)!i
把//和第一个.之间的内容扔到一个单独的group里 |
|
z0 发帖数: 71 | 10 【 以下文字转载自 Database 讨论区 】
发信人: z0 (z家老大), 信区: Database
标 题: 狂招人
发信站: BBS 未名空间站 (Thu Sep 13 16:55:24 2012, 美东)
data analyst,专业不限,管办身份:
如果你是h1b transfer没问题,只要不是第5,6年了,而绿卡还没开始;
如果是新h1b要求能连续工作到明年9/30;
进来就开始办绿卡,EB2.
有意者请投信箱,我告诉你email.
地点在VA,干一两年以后如果你需要可以换.
至少要招5人,其中3个position最近几个月可能需要extensive travel.
当然公司会负责吃喝拉撒.大部分人开始都会在我team里.但是面试是
需要走公司程序的,我一个人基本没有决定权,看你表现.我现在做的对
我自己的好处是我推荐的如果你能进来,我可以先要我到team里来.
收到不少resume,麻烦你们把text format都修改修改
好几位里头乱码不少,格式乱七八糟.这种态度来找工作怎么行?
以后招进来做事情这么马虎我也不敢要啊.
thanks. |
|
|
h*********d 发帖数: 336 | 12 phone interview, 实现一个in-memory filesystem. 刚开始面试,还没有摸到门路,
请大牛指点
Write an in memory filesystem! This is a simplified file system that only
supports directories. Your code needs to read from a file and parse the
commands listed below.
cd - Changes the current working directory. The working
directory begins at '/'. The special characters '.' should not modify the
current working directory and '..' should move the current working directory
to the parent.
mkdir - Creates a new dire... 阅读全帖 |
|
z******f 发帖数: 277 | 13 Tiny url不是直接入库然后拿insertID转成a-zA-z0-9么? |
|
z******f 发帖数: 277 | 14 Tiny url不是直接入库然后拿insertID转成a-zA-z0-9么? |
|
z0 发帖数: 71 | 15 【 以下文字转载自 Statistics 讨论区 】
发信人: z0 (z家老大), 信区: Statistics
标 题: 问个概率的题
发信站: BBS 未名空间站 (Wed May 6 22:54:58 2015, 美东)
一副扑克牌52张,每次随机抽一张然后随机放回去,问最后一张到第一张的期望步数是多
少?
肯定比52*52小,写了个小程序模拟了一下是1640多?有几天具体是多少忘了,肯定是1600
多.
不知道题说清楚了没有?拜求解析过程.
谢谢. |
|
H******7 发帖数: 1728 | 16 Theoretical background
You need a Bijective Function f. This is necessary so that you can find a
inverse function g('abc') = 123 for your f(123) = 'abc' function. This means:
There must be no x1, x2 (with x1 ≠ x2) that will make f(x1) = f(x2),
and for every y you must be able to find an x so that f(x) = y.
How to convert the ID to a shortened URL
Think of an alphabet we want to use. In your case that's [a-zA-Z0-9]. It
contains 62 letters.
Take an auto-generated, unique numerical ... 阅读全帖 |
|
j****y 发帖数: 1714 | 17 At least 3 more years of housing troubles seen
http://www.reuters.com/article/idUSTRE6B656N20101207?
loomia_ow=t0:s0:a49:g43:r5:c0.037975:b40349862:z0
By Linda Stern
WASHINGTON | Tue Dec 7, 2010 3:25pm EST
(Reuters) - The housing market will remain depressed, with record high
foreclosure levels, rising mortgage rates and a glut of distressed
properties dampening the market for years to come, industry experts
predicted on Tuesday.
"We don't see a full market recovery until 2014," said Rick Sharga... 阅读全帖 |
|
q******n 发帖数: 1 | 18 5/20/2014 Matamoros F-1 Visa Renew
I just successfully renewed my F-1 visa at US consulate in Matamoros in a
two-day trip. I promised Salvador to share my experience with you guys and
here it is.
5/13/2014
I filled in the online DS-160 form and then scheduled the appointments for
Applicant Service Center (ASC) on 5/19 at 3:30 pm and consulate interview on
5/20 at 10:30 am.
https://usvisa-info.com/en-mx/selfservice/ss_country_welcome
The MRV fee is 160 USD and you need to pay it first in order ... 阅读全帖 |
|
|
g******4 发帖数: 6339 | 20 ** US Academic Decathlon **
学术十项全能®是一个团队的竞争,学生参加十科竞赛
艺术,经济学,写作,口试,语言与文学,数学,音乐,科学,社会科学和演讲。
通过各级 (学区, 州)竞赛,州冠军队参加全国总决赛.
Winning teams advance through the local, regional, and state levels of
competition. The state champions compete at the national finals.
http://usad.org/About/Overview.asp
------------------------------------------------------------------
Cheaters is an HBO movie released in 2000 that chronicles the story of the
1994-1995 Steinmetz High School team that cheated in the United ... 阅读全帖 |
|
|
|
M****7 发帖数: 13407 | 23 【 以下文字转载自 Complain 讨论区 】
发信人: mitbbs (未名空间), 信区: Complain
标 题: [合集] 【应诉】对WillyBass在渔版疯狂刷屏炸版行为的处罚说明
发信站: BBS 未名空间站 (Mon May 14 03:54:32 2012, 美东)
☆─────────────────────────────────────☆
bass (rod and gun) 于 (Thu May 10 20:09:55 2012, 美东) 提到:
——————————————————【摘要】————————————————
——
WillyBass(WB)自从去年7月来到鱼版后,使用主ID和马甲多次谩骂网友和扰乱鱼版秩
序。目前已暴露马甲十多个,主ID和马甲分别在投诉版,鱼版,心情版,水版等版面共
被处罚 40多次。 在发现MITBBS存在被炸版刷屏的漏洞后,又多次公开和私下对渔版版
务进行炸版刷屏等威胁。版主已经明确警告他,按照版规主ID被办后,如果继续使用马
甲发言甚至扰乱版面秩序将被追加处罚主ID。
5/5/12,WB在回帖中辱骂Kasp... 阅读全帖 |
|
|
j****y 发帖数: 1714 | 25 发信人: joyjoy (joy), 信区: Living
标 题: 3 more years of housing troubles [zt]
发信站: BBS 未名空间站 (Sat Dec 18 23:22:43 2010, 美东)
At least 3 more years of housing troubles seen
http://www.reuters.com/article/idUSTRE6B656N20101207?
loomia_ow=t0:s0:a49:g43:r5:c0.037975:b40349862:z0
By Linda Stern
WASHINGTON | Tue Dec 7, 2010 3:25pm EST
(Reuters) - The housing market will remain depressed, with record high
foreclosure levels, rising mortgage rates and a glut of distressed
properties dampening the market for ... 阅读全帖 |
|
|
|
|
|
|
|
A******C 发帖数: 1808 | 32 \HS
\[GIBOKIND=China\]
\[TYPE=0\]
\[GAMECONDITION=分先:黑贴6目半\]
\[GAMETIME=限制时间 20分
30秒 读秒 3番\]
\[GAMERESULT=白棋中盘胜\]
\[GAMEZIPSU=0\]
\[GAMEDUM=0\]
\[GAMEGONGJE=65\]
\[GAMETOTALNUM=总: 172数\]
\[SZAUDIO=0\]
\[GAMENAME=分先\]
\[GAMEDATE=2010年10月16日 下午 11:34\]
\[GAMEPLACE=弈城TYGEM对弈\]
\[GAMELECNAME=\]
\[GAMEWHITENAME=AngelMAC(4段)\]
\[GAMEWHITELEVEL=4段\]
\[GAMEWHITENICK=AngelMAC\]
\[GAMEWHITECOUNTRY=2\]
\[GAMEWAVATA=60003\]
\[GAMEWIMAGE=\]
gib格式
\[GAMEBLACKNAME=yth姚(4段)\]
\[GAMEBLACKLEVEL=4段\]
\[GAMEBLACKNI... 阅读全帖 |
|
A******C 发帖数: 1808 | 33 \HS
\[GIBOKIND=China\]
\[TYPE=0\]
\[GAMECONDITION=分先:黑贴6目半\]
\[GAMETIME=限制时间 20分
30秒 读秒 3番\]
\[GAMERESULT=黑棋中盘胜\]
\[GAMEZIPSU=0\]
\[GAMEDUM=0\]
\[GAMEGONGJE=65\]
\[GAMETOTALNUM=总: 263数\]
\[SZAUDIO=0\]
\[GAMENAME=分先\]
\[GAMEDATE=2010年10月30日 上午 0:19\]
\[GAMEPLACE=弈城TYGEM对弈\]
\[GAMELECNAME=\]
\[GAMEWHITENAME=kbj0075(4段)\]
\[GAMEWHITELEVEL=4段\]
\[GAMEWHITENICK=kbj0075\]
\[GAMEWHITECOUNTRY=0\]
\[GAMEWAVATA=60001\]
\[GAMEWIMAGE=\]
\[GAMEBLACKNAME=AngelMAC(4段)\]
\[GAMEBLACKLEVEL=4段\]
\[GAMEBLACKNICK=An... 阅读全帖 |
|
A******C 发帖数: 1808 | 34 \HS
\[GIBOKIND=China\]
\[TYPE=0\]
\[GAMECONDITION=分先:黑贴6目半\]
\[GAMETIME=限制时间 20分
30秒 读秒 3番\]
\[GAMERESULT=黑棋中盘胜\]
\[GAMEZIPSU=0\]
\[GAMEDUM=0\]
\[GAMEGONGJE=65\]
\[GAMETOTALNUM=总: 197数\]
\[SZAUDIO=0\]
\[GAMENAME=分先\]
\[GAMEDATE=2011年1月24日 上午 0:21\]
\[GAMEPLACE=弈城TYGEM对弈\]
\[GAMELECNAME=\]
\[GAMEWHITENAME=kts8824(3段)\]
\[GAMEWHITELEVEL=3段\]
\[GAMEWHITENICK=kts8824\]
\[GAMEWHITECOUNTRY=0\]
\[GAMEWAVATA=60012\]
\[GAMEWIMAGE=\]
\[GAMEBLACKNAME=AngelMAC(3段)\]
\[GAMEBLACKLEVEL=3段\]
\[GAMEBLACKNICK=Ang... 阅读全帖 |
|
|
|
j****e 发帖数: 1782 | 37 ☆─────────────────────────────────────☆
matrex (小猪在天) 于 (Fri Feb 24 23:31:17 2006) 提到:
准备春假去3天,掐头去尾是2天整,应该可以看到樱花
主要想问一下,国会,纪念堂之类的要不要提前排队领票
或者需要排队很长时间等票?有没有什么需要注意的?
行程怎么安排比较合理呢?
☆─────────────────────────────────────☆
valence (7 Sigma) 于 (Sat Feb 25 09:27:11 2006) 提到:
国会和monument是当天早上领票.国会好象是9点开始.
白官进不去,其它的地方不用票
☆───────────┞yZaquot;A=養(鵱狒`6( Z0V|Q
N)H縔乚-\蕌萾
t:湹 |
|