制作表格的操作tab
test=‘name\temail\tpwd\nhou\[email protected]\tdangrshiw’
v=tes.ecpandtabs(19)
print(v)
test='adjf5'
v=test.isalpha()-----------判断是否只含有字母或汉字
test='2'--------------------判断是否是数字,第二个更强大,输出的是ture,fale
v=test.isdecimal()
或者v=test.isdigit()
变量名规则,数字,字母,下划线,数字不开头
a='-base1'
v=a.isidentifier()---------判断是否符合变量命名规则---标识符
print(v)