倒三角 num2 = int(input("Line:")) while num2 > 0: num1 = num2 while num1 > 0: print("*",end="") num1 -=1 print() num2 -= 1 九九乘法表 first = 1 while first <= 9: second = 1 while s…
python学习笔记整理 数据结构--字典 无序的 {键:值} 对集合 用于查询的方法 len(d) Return the number of items in the dictionary d. 返回元素个数 d[key] Return the item of d with key key. Raises a KeyError if key is not in the map. If a subclass of dict defines a method _missing_() and key…