Python 学习笔记

1、python输入的数据默认都是字符型,因此在条件判断的时候要特别注意

for i in range(10):
    n=input()
    if n=='0':#如果用n==0判断会结束不了
        break

2、print(' ')会输出两个换行,print(end=' ')输出一个换行

原文地址:https://www.cnblogs.com/-citywall123/p/11569085.html