What will be the output of the following Python code? [br][/br]import re [br][/br]s = 'abc123 xyz666 lmn-11 def77' [br][/br]re.sub(r'\b([a-z]+)(\d+)', r'\2\1:', s)
A: abc123 xyz666 lmn-11 def77
B: 77def: lmn-11: 666xyz: 123abc
C: abc123:', 'xyz666:', 'lmn-11:', 'def77:’
D: abc123: xyz666: lmn-11: def77
A: abc123 xyz666 lmn-11 def77
B: 77def: lmn-11: 666xyz: 123abc
C: abc123:', 'xyz666:', 'lmn-11:', 'def77:’
D: abc123: xyz666: lmn-11: def77
举一反三
- What will be the output of the following Python code? [br][/br]print("abc DEF".capitalize()) A: abc def B: ABC DEF C: Abc def D: Abc Def
- #print("Test")print("abc") #print("xyz")程序输出 A: Test<br/>abc xyz B: Test <br/>abc <br/>xyz C: abc D: abc xyz
- 对于字典d={"abc":1,"xyz":3,"lmn":2},len(d)的结果是____
- #print(“Test”)[br][/br]print(“abc”)#print(“xyz”)程序的输出结果是() A: Test <br>abcxyz B: abc C: abcxyz D: Test abc <br>xyz
- 【判断题】已知如下语句,则a[1]的值为"123" char *a[ ]={"abc","123", "xyz" ,"456","this"};