#函数调用
#无参函数
def showMsg():
print("hello python")
def func1(x,y):
sum= x+ y
return sum
def func2(x,y):
print(x)
print(y)
return x*y
def func3(x,y):
sum=x - y
return sum
#showMsg();
print (func1(1,2))
print (func2(4,5))
print (func3(3,2))
#数据类型
# 金 木 水 火 土
counter=100
miles=14.8
name="KG02"
print(counter)
print(miles)
print(name)
print("hello"+" name")
print(miles)
print(counter)
name1=name2=name3="happy"
print(name1)
print(name2)
print(name3)
high,wih,lenth, name= 1.70,200,17,"gree"
print(high)
print(wih)
print(lenth)
print(name)
#Python3
#Number 数字 String 字符串 Tuple 元组 不可变数据
#List 列表 Set 集合 Dictionary 字典 可变数据
"""
#运算符 + - * / // % **
print(3+4)
print(3-4)
print(3*4)
print("7/4="+ str(7/4))
print("7//4="+ str(7//4))
print("7%4="+ str(7%4))
print("2**8="+ str(2**8))
"""
# 字符串 "1" 和 数字 1 相加
# 6种数据类型 Number String Tuple List Set Dictionary
# number a=1 b=3 a+b=4
# string a="1" b="3" a+b="13"
print("1"+ str(1))
print((1+1))
clname="kgckg02"
# 0123456
#
print(clname)
print(clname[3:5])
print(clname[0:3])