#Python
# 数学操作符
#指数
print(2**8)
#取模/取余数
print(22%6)
#整除/商数取整
print(22//6)
#除法
print(22/6)
结果:
256
4
3
3.6666666666666665
# Python 的数据类型
#Python的每个值都只有一种数据类型
#整型 -2, -1, 0, 1, 2, 3
#浮点型 -2.1, -1.1, -0,1
#字符串 'a', "aa"
# 字符串的连接
print('abc' + 'bcd')
# input() 函数 函数返回的是一个字符串,如果需要数字需要转一下
print('input your name:')
name = input()
print('name is ' + name)
# len() 函数 取字符串长度
print(len('hello'))
print(len("hello"))
print(len(''))
# str() 函数 数字转字符串
print('I am ' + str(20) + ' years old.')
# int() 函数 数字字符串转 int
# float 函数 float型字符串 转 float