[tex=21.571x1.286]LjCl+q73o/d3CCn3CMxCYuElPS9qq+UZo5nripoyWfeC40jzVSYPhG4ltU1GL8cmYevROdGANPID7vWgQoM3b2KjZJbPlJzTMVqrzqjsyDI=[/tex][br][/br][tex=7.714x1.357]fnfPFG39iz5x1gJZ3zf60wkYZ+PWiO0hvlLPq3dUfHxOBwOjc494M0AxTxr+lfNj[/tex]
举一反三
- 以下数组定义中,错误的是( )。 A: int<br/>x[2][3] ={1, 2, 3, 4, 5, 6} ; B: int<br/>x[][3] ={0} ; C: int<br/>x[][3] ={{1, 2, 3} , {4, 5, 6} } ; D: int<br/>x[2][3] ={{1, 2} , {3, 4} , {5, 6} } ;
- set1 = {x for x in range(10)} print(set1) 以上代码的运行结果为? A: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} B: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10} C: {1, 2, 3, 4, 5, 6, 7, 8, 9} D: {1, 2, 3, 4, 5, 6, 7, 8, 9,10}
- [tex=21.571x1.286]LjCl+q73o/d3CCn3CMxCYuElPS9qq+UZo5nripoyWfeC40jzVSYPhG4ltU1GL8cmYevROdGANPID7vWgQoM3b2KjZJbPlJzTMVqrzqjsyDI=[/tex][br][/br][tex=6.714x1.357]RuPksVt56l/Eka8nFkUdCEEfKve7+Fn5vDtXEP+x//g=[/tex]
- >>>x= [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9]>>>print(x.sort()) 语句运行结果正确的是( )。 A: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B: [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9] C: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] D: ['2', '4', '0', '6', '10', '7', '8', '3', '9', '1', '5']
- set1 = {x for x in range(10) if x%2!=0} print(set1) 以上代码的运行结果为? A: {1, 3, 5, 7, 9} B: {1, 3, 5, 7} C: {3, 5, 7, 9} D: {3, 5, 7}