1.python大小写敏感
2.python无法打印不存在的对象,因此使用print打印对象前,要先定义/赋值
3.
while True:
a = input('his name is ')
if a=='mini': #注意此处的两个等号,只写一个等号时,报错:SyntaxError: invalid syntax
break
4.
a=open('C:/Users/Lenovo/PycharmProjects/zwd/venv/2.txt','w') #如果目录下,有2.txt,写入字符串;如果目录下没有2.txt,创建后再写入字符串
a.write('hello python and hello world')
5.查看某变量是何种数据类型,使用