![]()
![]()
# -*- coding : utf-8 -*- #编码格式转换 旧方法
# coding : utf-8 #编码格式转换 旧方法
print(10 ** 2)#次方
print(10 ** 2.5)
print(33 // 2.5)#去除小数
print(44 // 3)
print(True and False)#逻辑运算
print(not False)
c_1 = False
c_2 = False
print(not (c_1 == c_2))
#注释
#单行注释
"""
多行注释
"""
#代码中连接符
str = 'ASDASAD' \
'dsdsdsdsds'
print(str)
#换行输出文本
str = 'hellow \nworld'
print(str)
str = """hellow
world"""
print(str)
#单双引号区分
print("asd'123'wqe")
print('asd"123"wqe')
print('asd\'123\'wqe') #需要用\ 转译后输出
#换行符例子
print('a \nb \nc \nd')
print("""a
b
c
d""")