字符串(引号):四种表达方式
n1 = "我是"
n1 = ‘我是‘
n1 = """我是"""
n1 = ‘"我是‘"
加法
n1 = "alex" n2 = "de" n3 = "db" n4 = n1+n2+n3 n4 = alexdedb
加减乘除次方余:
a1 = 10 a2 = 20 a3 = a1+a2 a3 = a1-a2 a3 = a1*a2 a3 = 100/10 a3 = 4**4 a3 = 39%8 #获取39除以8得到的余数
判断
a = 13 temp = a % 2 if temp == 0: print("偶数") else: print("奇数")
原文:https://www.cnblogs.com/qq78506283/p/12013888.html