A****S 发帖数: 978 | 1 are you lv jinyang?
haha :))))
I remember you got your visa from CJ last year, right?
I got my visas from CJ and TJ. hehe :)))))
I am lucky! |
|
|
|
|
f*********i 发帖数: 197 | 5 小弟在准备qualify考试,看到算法例卷上有三题,百思不得其解,希望高人能给一
点帮助。
1.You are given n items with weighs w[1..n] with w[1]
to group the items into m groups (1<=m<=n) non-empty and disjoint classes C1
,C2....Cm, and assign each item in Cj a weight-label Lj, 1<=j<=m, such that
EE(w[i]-Lj)^2 is minimun (汗,连加号打不出来,只好用E代替,1<=j<=m, w[i]
are the elements in each group j)
1)Give a pseudocode of an efficient algorithm to determine the Cj and the
label Lj, take w=[2,3,5,6,7,8,9,10], m=2 show L1,L2 a |
|
E******n 发帖数: 641 | 6 ☆─────────────────────────────────────☆
sinausa (meizhong) 于 (Tue Jun 26 11:03:43 2007) 提到:
价钱不算离谱嘛,有谁用上了吗?
http://www.compusa.com/products/product_info.asp?&ref=cj&pfp=cj&product_code=344526
只不过播放Blu-Ray光盘硬件要求还是蛮高的。要是机器新不妨买个扔进去。
☆─────────────────────────────────────☆
jxmg (剑行美国) 于 (Tue Jun 26 11:23:50 2007) 提到:
Sony 其实3年前就已经完蛋了, 现在的东西是价高质一般,靠点名气在那撑着。三星
的品质和它一样。
Sony的这个Blue Ray是个Joke,昙花一现,不信走着瞧。
其实挺悲哀的,Sony的完蛋也是意味着亚洲企业文化的完蛋。
☆─────────────────────────────────────☆
yoh (海豚) 于 (Tue |
|
b**********8 发帖数: 239 | 7 请各位大牛指点,感激不尽
想写一个登录mitbbs 的script with following code but failed.
( if trying with mechanize package , I can login successfully)
Is there anything wrong with the function ?
Code:
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = (('id', username),
('password', password),
)
headers={
'User-agent':'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2... 阅读全帖 |
|
l********a 发帖数: 1154 | 8 看你也是firefox,怎么没弄个httpfox插件看header呢?
你的代码有2个问题:
1. 提交的时候,密码对应的字段不是password,而是passwd,用httpfox能看到的
2. 登陆页面的request地址有误,不是http://www.mitbbs.com/mitbbs_login.php,而是http://www.mitbbs.com/newindex/mitbbs_bbslogin.php.也是httpfox看的.
下面附上调试通过的代码
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = (('id', username),
('passwd', password),
)
headers={
'User-age... 阅读全帖 |
|
b**********8 发帖数: 239 | 9 多谢高人指点.The updated script works fine under Python 2.7. But it will
still fail if runing it under Python 3.2 after converting. (I guess it
might be related to different handling for header info of request in 3.2.
But I am not sure). Is there anything wrong with following script ?
多谢了!
Code :
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import urllib.request, urllib.parse, urllib.error, urllib.request, urllib.
error, urllib.parse, http.cookiejar
#from bs4 import *
username = 'id'
password = ... 阅读全帖 |
|
s******u 发帖数: 247 | 10 比如这个mitbbs的网页,我怎么print都是乱码呢?
谁给指点一下?谢谢。代码如下:
import os
import sys
import urllib2
import cookielib
import codecs
url= 'http://www.mitbbs.com/article_t/Programming/31237353.html'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
# add a fake UA
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (compatible; MSIE 9
.0; Windows NT 6.1; Trident/5.0)')]
urllib2.install... 阅读全帖 |
|
z*******h 发帖数: 346 | 11 import os
import sys
import urllib2
import cookielib
import codecs
url= 'http://www.mitbbs.com/bbsdoc/Programming.html'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
# add a fake UA
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0;
Windows NT 6.1; Trident/5.0)')]
urllib2.install_opener(opener)
request = urllib2.Request(url)
response = opener.open(request).read()
print unicode(response, encoding = 'gb18030')
works on iTerm on Mac... 阅读全帖 |
|
c*****m 发帖数: 1160 | 12
用 python3,程序修改成:
import os
import sys
import urllib
import http.cookiejar
import codecs
url= 'http://www.mitbbs.com/article/Programming/31238113_0.html'
cj = http.cookiejar.CookieJar()
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
# add a fake UA
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (compatible; MSIE 9.0;
Windows NT 6.1; Trident/5.0)')]
urllib.request.install_opener(opener)
request = urllib.request.Request(url)
response = opener.open(request).read()
... 阅读全帖 |
|
s*****r 发帖数: 469 | 13 【 以下文字转载自 Military 讨论区 】
发信人: Physmolecule (斐丝~), 信区: Military
标 题: 中国大型客机项目全面进入预发展阶段(zz)
发信站: BBS 未名空间站 (Wed Jul 15 13:24:57 2009, 美东)
中国大型客机项目全面进入预发展阶段
http://www.chinanews.com.cn/cj/cj-cyzh/news/2009/07-15/1776643.shtml
中新社上海七月十五日电 (记者 孙自法)肩负中国大型客机研制重任的中国商用飞机有
限责任公司(简称中国商飞公司)十五日对外透露,其大型客机项目已取得一系列阶段性
成果,目前,型号为C919大型客机项目全面进入预发展阶段。
中国商飞公司新支线客机ARJ21-700当日由上海顺利转场飞行至西安,圆满完成中
国首架自行研制、具有自主知识产权新支线客机的首次城际飞行。中国商飞公司董事长
张庆伟在新支线客机成功进行首次转场城际飞行后表示,该公司在ARJ21新支线飞机取
得重大进展的同时,大型客机项目也取得了一系列阶段性成果,目前,C919大型客机项
目全面 |
|
r*****m 发帖数: 3619 | 14 Results: 46
Select item 25597018
1.
Exome-wide Sequencing Shows Low Mutation Rates and Identifies Novel Mutated
Genes in Seminomas.
Cutcutache I, Suzuki Y, Tan IB, Ramgopal S, Zhang S, Ramnarayanan K, Gan A,
Lee HH, Tay ST, Ooi A, Ong CK, Bolthouse JT, Lane BR, Anema JG, Kahnoski RJ,
Tan P, Teh BT, Rozen SG.
Eur Urol. 2015 Jan 14. pii: S0302-2838(14)01396-7. doi: 10.1016/j.eururo.
2014.12.040. [Epub ahead of print]
PMID: 25597018 [PubMed - as supplied by publisher] Free Article
Related citations... 阅读全帖 |
|
|
|
m****s 发帖数: 18160 | 17 ☆─────────────────────────────────────☆
crazydog (Crazy Man) 于 (Tue Oct 11 05:14:48 2011, 美东) 提到:
是否已阅读:1)《站规》2)《版务操作简易手册》?:
是
[申请ID]:
crazydog
[申请版面]:
落地生根(Immigration)
[申请职务]:
版主/板斧
[版务经验]:
no
[申请纲领]:
现版主任期快到
其实就是看现在版主太忙。
本人宗旨就是为大家服务,少走弯路。
如果我做斑竹,将尽快邀请2-3名有版务经验的ID作为版副,尽快搭起班子为大家服务
如果有更好的人选当斑竹,当然更好。
谢谢支持
[版规草案]:
基本维持以前的版规,如果当选将视大家意见进行必要完善
☆─────────────────────────────────────☆
crazydog (Crazy Man) 于 (Tue Oct 11 05:25:50 2011, 美东) 提到:
这下符合要求了,在一周内了
☆───────────────────────────────────... 阅读全帖 |
|
|
|
|
|
l****r 发帖数: 21884 | 22 来自主题: _ChenChuSheng版 - 简单而真实 啊啊啊,还有玫瑰花瓣浴???我又忍不住不cj了,小东东快点给我们cj的展开!
还有吉它,这些关键词我咋第一次看都没注意到呢,就注意很大很大的一张床了,捂脸
。。。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
w*******y 发帖数: 60932 | 36 HP Photosmart wireless AIO printer at Staples was $149.98, is now $15.50.
SKU is 805147. UPC may be 884420934035 (printed on receipt). Model number on
store tag is CD035A#ABA. Printed store tag stapled to box, dated 12/20/10,
had a price of $40.50, but it scanned at $15.50. Used 10% off coupon to
reduce it to $13.95. Only one, NIB, at store I visited. Asked them to check
other stores' inventory, and most had one, a few others two. It's no longer
on the store website. Check inventory below.
Link... 阅读全帖 |
|
|
w*******y 发帖数: 60932 | 38 Link:
http://www.staples.com/Balance-Bar-Peanut-Butter-1.76-oz.-15-Bo - Staples Basic&cm_mmc=CJ-_-361116-_-361116-_-10422268&SID=FW9zpqhr&cm_pla=361116&cm_sp=marketing-_-Cleaning&AID=10422268&cm_cat=358129&cm_ven=CJ&storeId=10001
Buy one, get one FREE
on select Balance Bar
To receive your free item:
Add two of the same Balance Bars to your cart
For item# 884929 enter coupon code 97773 at checkout
For item# 884930 enter coupon code 57605at checkout
Offer expires 07/23/2011
Online only. While supp... 阅读全帖 |
|
w*******y 发帖数: 60932 | 39 Buy 1 Case of Popchips, Get a Credit for 5 Select MP3 Songs
How to Qualify for This Offer:
Add at least one qualifying case of Popchips sold by [keyword]Amazon.com
[/keyword] to your Shopping Cart and complete the purchase or complete the
purchase through 1-Click ordering.
Upon shipment of your purchase, you will receive an e-mail indicating
that a credit for 5 select MP3 songs has been applied to your account
automatically. The e-mail will also provide instructions on how to redeem
your... 阅读全帖 |
|
|
w*******y 发帖数: 60932 | 41 Advance Auto Parts (AAP) has the Peak 900 Amp Jump Starter for $49.99
Add a Small filler such as a nut (Dorman - Autograde Speed Nuts Part No:
45423)
Use Coupon A123 for $20 of $50
Total ~ $30 ( to jsmiley1127 on FW)
Peak 900 Amp Jump Starter $49.99 + Filler - $20 Coupon = $30
advanceautoparts.com:
http://shop.advanceautoparts.com/webapp/wcs/stores/servlet/prod
#utm_source=aff&utm_medium=cj&utm_campaign=361116&utm_content=10716090"
target="_blank">Link to the Peak Jump Starter [advanceautoparts.... 阅读全帖 |
|
|
|
|
|
b**********8 发帖数: 239 | 46 请各位大牛指点,感激不尽
想写一个登录mitbbs 的script by using urllib2 with following code but failed.
( if trying with mechanize package , I can login successfully)
Is there anything wrong with the function ?
Code:
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = (('id', username),
('password', password),
)
headers={
'User-agent':'Mozilla/5.0 (X11; U; Linux i68... 阅读全帖 |
|
b**********8 发帖数: 239 | 47 请各位大牛指点,感激不尽
想写一个登录mitbbs 的script by using urllib2 with following code but failed.
( if trying with mechanize package , I can login successfully)
Is there anything wrong with the function ?
Code:
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = (('id', username),
('password', password),
)
headers={
'User-agent':'Mozilla/5.0 (X11; U; Linux i68... 阅读全帖 |
|
g****z 发帖数: 2413 | 48 The breast milk running down would have been inappropriate
——————————————————
呵呵,乔帅用他的瘪嘴巴正好接住哈,据说很多哺乳期的女人都让老公用嘴吸一吸啥的
,我不CJ啊不CJ。。。。
是替身。 查IMDB的Trivia, 那个女演员当时刚生完孩子,还在哺乳期,是决不能露地。
given |
|
|