g*s
2 楼
还是OPT, H-1还没有开始申请,已经拿到contract了。
y*a
3 楼
>>> import re
>>> re.sub(r'\$xxx', 'yyy', '$xxxxx')
'yyyxx'
为啥会MATCH&REPLACE?
我的理解是 r'\$xxx' 就是‘\$xxx', 所以'$xxxxx'不会MATCH,不应该有REPLACE发生
。 ANY COMMENT? THX
When an "r" or "R" prefix is present, a character following a backslash is
included in the string without change, and all backslashes are left in the
string. For example, the string literal r"\n" consists of two characters: a
backslash and a lowercase "n". String quotes can be escaped with a backslash
, but the backslash remains in the string; for example, r""" is a valid
string literal consisting of two characters: a backslash and a double quote;
r"" is not a valid string literal (even a raw string cannot end in an odd
number of backslashes). Specifically, a raw string cannot end in a single
backslash (since the backslash would escape the following quote character).
Note also that a single backslash followed by a newline is interpreted as
those two characters as part of the string, not as a line continuation.
>>> re.sub(r'\$xxx', 'yyy', '$xxxxx')
'yyyxx'
为啥会MATCH&REPLACE?
我的理解是 r'\$xxx' 就是‘\$xxx', 所以'$xxxxx'不会MATCH,不应该有REPLACE发生
。 ANY COMMENT? THX
When an "r" or "R" prefix is present, a character following a backslash is
included in the string without change, and all backslashes are left in the
string. For example, the string literal r"\n" consists of two characters: a
backslash and a lowercase "n". String quotes can be escaped with a backslash
, but the backslash remains in the string; for example, r""" is a valid
string literal consisting of two characters: a backslash and a double quote;
r"" is not a valid string literal (even a raw string cannot end in an odd
number of backslashes). Specifically, a raw string cannot end in a single
backslash (since the backslash would escape the following quote character).
Note also that a single backslash followed by a newline is interpreted as
those two characters as part of the string, not as a line continuation.
s*x
4 楼
当然可以,一个原则,谁先露底价谁就输了。等hr先说,然后你再提,想好了再提,人
家答应了你再反悔就不厚道了。base实在不给涨就在sign on之类的一次性的东西上再
商量
家答应了你再反悔就不厚道了。base实在不给涨就在sign on之类的一次性的东西上再
商量
g*s
5 楼
没人回?自己顶一下
l*s
6 楼
first argument is pattern.
t*3
7 楼
如果对方说了一个数目,但没有明确说可以negotiation,我怎么知道是否可以讨价还
价呢?
价呢?
t*1
8 楼
我问的银行都要求H1B
e*o
9 楼
>>> re.sub(r'xxx$', 'yyy', '$xxxxx')
'$xxyyy'
>>> re.sub(r'\$xxx', 'yyy', '$xxxxx')
'yyyxx'
>>>
'$' is a metacharacter, in regex, match the end of string.
and '\$' match character '$'
'$xxyyy'
>>> re.sub(r'\$xxx', 'yyy', '$xxxxx')
'yyyxx'
>>>
'$' is a metacharacter, in regex, match the end of string.
and '\$' match character '$'
b*3
11 楼
没有H1B approval,不要浪费时间了。
y*a
12 楼
according to "When an "r" or "R" prefix is present, a character following a
backslash is
included in the string without change, and all backslashes are left in the
string."
r"\$xxx" should be a string whose first character is "\" and 2nd is "$", but
$xxxxx doesn't have "\", therefore there should be no match.
Is my understanding of the prefix 'r' wrong?
backslash is
included in the string without change, and all backslashes are left in the
string."
r"\$xxx" should be a string whose first character is "\" and 2nd is "$", but
$xxxxx doesn't have "\", therefore there should be no match.
Is my understanding of the prefix 'r' wrong?
s*x
13 楼
Fresh也可以,offer都可以商量
g*s
14 楼
如果夫妻两个一个F1,一个H1,可是F1的工资现在比H1要高,而且H1所在地方不是要买
房的地方,能行么?
房的地方,能行么?
l*s
15 楼
you understand 'r' prefix correctly, but the regex engine sees '$' and
interprets it as'$'
a
【在 y***a 的大作中提到】
: according to "When an "r" or "R" prefix is present, a character following a
: backslash is
: included in the string without change, and all backslashes are left in the
: string."
: r"\$xxx" should be a string whose first character is "\" and 2nd is "$", but
: $xxxxx doesn't have "\", therefore there should be no match.
: Is my understanding of the prefix 'r' wrong?
interprets it as'$'
a
【在 y***a 的大作中提到】
: according to "When an "r" or "R" prefix is present, a character following a
: backslash is
: included in the string without change, and all backslashes are left in the
: string."
: r"\$xxx" should be a string whose first character is "\" and 2nd is "$", but
: $xxxxx doesn't have "\", therefore there should be no match.
: Is my understanding of the prefix 'r' wrong?
s*m
16 楼
尝试一下BOA吧
y*a
17 楼
no. We are talking about different things.
my understanding is tthat the 'r' prefix will force the regex engine to
leave the backslack "\" in the pattern string, therefore $xxxxx cannot match
since it doesn't have the backslacsh
【在 l*********s 的大作中提到】
: you understand 'r' prefix correctly, but the regex engine sees '$' and
: interprets it as'$'
:
: a
my understanding is tthat the 'r' prefix will force the regex engine to
leave the backslack "\" in the pattern string, therefore $xxxxx cannot match
since it doesn't have the backslacsh
【在 l*********s 的大作中提到】
: you understand 'r' prefix correctly, but the regex engine sees '$' and
: interprets it as'$'
:
: a
r*s
18 楼
貌似俺的银行是BOA,也只给H1B贷款。。。
g*s
20 楼
问过BOA也是只给H1B,说H1B的工资有点低,但是也能刚刚到线。问题是H1B的文件明年
2月就到期了,接电话的人说只要有I-797就好,我们心里还是不塌实。
2月就到期了,接电话的人说只要有I-797就好,我们心里还是不塌实。
相关阅读
工作中的小网站项目如何架设?lisperIs there anyone familiar with NTP Time Synchronization?前一段在这里说要写 tax 程序的进展怎么样了??米果程序员整体来说还是很勤劳刻苦的包子求推荐个入门的c++那个产品结构会重复组织结构的定理叫什么来着。。。问个简单的数值赋值问题小公司phone interview 兼求建议,谢谢越简单的语言从历史的角度越好zhaoce: 我感觉python很有前途呀鲁宾离职深度谣言后续default languageSoftware engineer positions, Samsung Mobile at San Jose (转载)要具备这些能力,应该看哪些方面的书?提倡偷懒的人又不愿意承认自己的懒惰Re: 让我告诉你们一个真实的软工。。。 (转载)看现在python很火,哪位科普一下和java的比较转王垠雄文-Oberon 操作系统:一个被忽略的珍宝借人气问一个boost的问题,linux上生成的binary archive (转载)