data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWQAAAA7CAYAAABMtPC2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAy6SURBVHhe7Zy9duI8EIYn37VACk6ugFwBpKFKS0fK0GxHSbcNKZOONhVN4AqSK+BQBO6Fb0Y/tiz8IxsTlD3vc45219iWJc3o1Uiy9+bIEAAAgKvzn/kbAADAlYEgAwBAJECQAQAgEiDIAAAQCRBkAACIBAgyAABEAgQZAAAiAYIMAACRAEEGAIBIgCADAEAkQJABACASIMgAABAJEGQAAIgECDIAAEQCBBkAACIBggwAAJEAQQYAgEiAIAMAQCRAkAEAIBIgyAAAEAkQZAAAiIQGgnygw8H8sxUO9HJ/Qzc39/TSVr6HF7p/2piD34C0QYv1j5YNbX6TWX4xB27ofHc6t//ChpekUYT8MWYBvX8pMHgNNk8sxF2afpnjFtg8cdnGRMvXgfnFs
举一反三
- >>>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']
- list(range(-1,10,2)) A: [0, 2, 4, 6, 8, 10] B: [-1, 1, 3, 5, 7, 9] C: [0, 2, 4, 6, 8]
- 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}
- 输出九九乘法表。 1 2 3 4 5 6 7 8 9 --------------------------------------------------------------------- 1*1=1 2*1=2 2*2=4 3*1=3 3*2=6 3*3=9 4*1=4 4*2=8 4*3=12 4*4=16 5*1=5 5*2=10 5*3=15 5*4=20 5*5=25 6*1=6 6*2=12 6*3=18 6*4=24 6*5=30 6*6=36 7*1=7 7*2=14 7*3=21 7*4=28 7*5=35 7*6=42 7*7=49 8*1=8 8*2=16 8*3=24 8*4=32 8*5=40 8*6=48 8*7=56 8*8=64 9*1=9 9*2=18 9*3=27 9*4=36 9*5=45 9*6=54 9*7=63 9*8=72 9*9=81
- 下面语句的输出结果是?range(len('HelloWorld')) A: [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11] B: 11 C: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] D: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]