Given a string of length one, return an integer representing the Unicode code point of the character when the argument is a unicode object, or the value of the byte when the argument is an 8-bit string. For example, ord('a') returns the integer 97, o…
day3复习 >>> for i in range(10): ... if i == 3: ... break ... print(i) ... 0 1 2 >>> for i in range(10): ... if i == 3: ... continue ... print(i) ... 0 1 2 4 >>> while True: ... i = int(input("请输入一个数字:")) ... if i%2 == 0…
1.用del删除对对象的引用 >>> a = 123 >>> a 123 >>> del a >>> a Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError : name 'a' is not defined 2.整型 (1)布尔型 该类型取值范围只要两个值:布尔值True 和…