print(12.2)
print('hello')
print("hi")
print(1+2)
fp = open('D:/TEXT.txt', 'a+')
print('just for test',file = fp)
fp.close()
print('hello',"好",2)
print('hello\tworld')
print('helloooo\tworld')
print('hello\rworld')
print('hi\rworld')
print('hello\bworld')
print('https:\\\\www.baidu.com')
print('老师说:\'大家好\'')
print(r'hello\nworld')
import keyword
print(keyword.kwlist)
name = 'LPA'
print(name)
print(id(name))
print(type(name))
from decimal import Decimal
print(Decimal('1.1')+Decimal('2.2'))
str1 = 'blacck stones'
str2 = "black stones"
str3 = '''black stones
blast'''
str4 = """black stones
blast"""
print(str1,str2,str3,str4)
a = 10
b = 1.11
c = False
print(str(a), str(b), str(c))
a = '10'
b = '1.11'
c = True
d = 'hello'
e = 3.3
print(int(a))
print(int(c))
print(int(e))
a = '10'
b = '1.11'
c = True
d = 'hello'
f = 12
print(float(a))
print(float(b))
print(float(c))
print(float(f))
'''多
行
注
释'''
'''a = input('输入第一个数:')
a = int(a)
b = input('输入第二个数:')
b = int(b)
print('两数之和是:',a+b)'''
print(1/2)
print(11//2)
print(11%2)
print(2**3)
print(9//4)
print(-9//-4)
print(-9//4)
print(-9%4)
a=b=c=10
print(a,id(a))
print(b,id(b))
print(c,id(c))
a, b, c = 1,2,3
print(a,b,c)
a,b = 1,2
a,b = b,a
print(a,b)
a = 'layla'
b = 'layla'
print(a is b)
print(a is not b)
lst1 = [1,2,3,4]
lst2 = [1,2,3,4]
print(lst1 == lst2)
print(lst1 is lst2)
print(id(lst1))
print(id(lst2))
a,b = 1,2
print(a==1 and b==1)
print(a==1 or b==1)
q = True
w = False
print(not q)
str = 'black stones'
print('a' in str)
print('blast' not in str)
print(4 & 8)
print(4 | 8)
print(4<<1)
print(4>>1)