标签:span name erro pre ctr style print err 运算
运算符:
+ - * / ** %(余数) //(商)
in not in 判断某个东西是否在某个东西里面包含
num = 9//2
print(num)
ctrl+? 选中 整体注释
name="郑建文" #"郑建文" 字符串 #"郑" 字符 #"建文" 子字符串 if"正" in name: print(‘OK‘) else: print(‘Error‘)
name="郑" #"郑建文" 字符串 #"郑" 字符 if"正" in name: print(‘OK‘) else: print(‘Error‘)
name="郑" #"郑建文" 字符串 #"郑" 字符 if"文" not in name: print(‘1‘) else: print(‘2‘)
标签:span name erro pre ctr style print err 运算
原文地址:https://www.cnblogs.com/liu-zhijun/p/9514454.html