name = 'maomao'
type(name)
say = "let's go"
type(say)
say = 'tom:"let\'s go"'
print(day)
print(say)
say = 'tom:"let\'s go" jerry:"ok!"'
print(say)
say = 'tom:"let\'s go" \n jerry:"ok!"'
print(say)
say2 = '''tom:"let\'s go"jerry:"ok!"'jerry:"ok"'''
print(say2)
say
day2
say2
say = 'tom:"let\'s go" \n\t\t\tjerry:"ok!"'
print(say)
say = r'tom:"let\'s go" \n\t\t\tjerry:"ok!"'
print(say)
say
say2
say + say2
a=1
'1'
b='1'
a+int(b)
str(a)+b
b*5
runfile('C:/Users/kanjingli/Downloads/深度学习/01-第一课 神经网络和深度学习/第一课第二周编程作业/第一课第二周编程作业/assignment2/lr_utils.py', wdir='C:/Users/kanjingli/Downloads/深度学习/01-第一课 神经网络和深度学习/第一课第二周编程作业/第一课第二周编程作业/assignment2')
runfile('C:/Users/kanjingli/.spyder-py3/assignment2/lr_utils.py', wdir='C:/Users/kanjingli/.spyder-py3/assignment2')
123

##---(Thu Jan 25 16:51:36 2018)---
s1='hello'
s2='hello world'
s1 in s2
w in s2
'w' in s2
'w' in s1
s1 ==s2
if s1 == s2:print('ok')
if s1!= s2:print('ok')
s1 not in s2
s2[0]
pritn(s2[0])
print(s2[0])
print(s2[1])
print(s2[2])
print(s2[-1])
print(s2[-2])
print(s2[0:5])
print(s2[0:4])
print(s2[6:])
print(s2[:5])
print(s2[-5:])
print(s2[:])
print(s2[::2])
print(s2[1:7:2])
player="milo 100 10 50"
say3 = 'there are 5 monkey in the tree'
say3 = 'there are 3 monkey in the tree'
say3 = 'there are %d monkey in the %s !'
say3
print(say3)
say3 %(3,'tree')
print(say3 %(3,'tree'))
print(say3 %(5,'tree'))
d = (3,'tree')
d2 = (5,'water')
print(say3 % d)
print(say3 % d2)
help(str)
say3
say3.capitalize()
say3
newsay3=say3.capitalize()
newsay3
say3.count()
say3.count(e)
say3.count('e')
hw = 'hello world'
hw
hw.find('world')
hw[6:]
hw[6:11]
hw.title()
ip = "192.168.1.123"
ip = "192.168.1.12"
ip = "192.168.1.1"
ip2 = "192.168.1.1"
ip1 = "192.168.1.12"
ip.split('.')
ip.split('.')[-1]
ip.split('.')[0]
ip.split('.')
ipl=ip.split('.')
ipl
".".join(ipl)
"-----".jion(ipl)
"-----".join(ipl)
runfile('C:/Users/kanjingli/.spyder-py3/3-18.py', wdir='C:/Users/kanjingli/.spyder-py3')
a1
a3
runfile('C:/Users/kanjingli/.spyder-py3/3-18.py', wdir='C:/Users/kanjingli/.spyder-py3')

##---(Thu Jan 25 17:58:25 2018)---
runfile('C:/Users/kanjingli/.spyder-py3/3-18.py', wdir='C:/Users/kanjingli/.spyder-py3')