x=int(raw_input("Please enter an integer:"))#获取行输入 |
2. for... in
a=['cat','door','example'] |
3. break/continue
for i in range(10): |
4. is用来比较两个变量是否指向同一内存地址(也就是两个变量是否等价) 而 == 是用来比较两个变量是否逻辑相等,如:a is b; del用来删除元素
5. try...except...finally / raise
try: |