Python入门
1.print () 函数 ,输出 eg. print ('a') print ("a") print (1+1)
2.''' 三个单引号可以换行,或者用转义字符\n
3.转义字符
4.变量赋值 name='smith'
5. 数字类型转换
6.if判断 if ,if--else, if--elif--else
7.input()函数 choice=input('请输入您选择的数字:')
8.次方:2**3, 代表2的三次方
9.函数
def greet_customer():
print("Welcome to Engrossing Grocers.")
print("Our special is mandarin oranges.")
print("Have fun shopping!")
#call function
greet_customer()