摘要: #%s字符串占位符:可以接收字符串,也可接收数字 print('My name is %s,my age is %s' %('egon',18)) #%d数字占位符:只能接收数字 print('My name is %s,my age is %d' %('egon',18)) print('My n 阅读全文
posted @ 2018-06-01 10:30 sunwanling 阅读(84) 评论(0) 推荐(0)
摘要: #那单引号、双引号、多引号有什么区别呢? 让我大声告诉你,单双引号木有任何区别,只有下面这种情况 你需要考虑单双的配合 msg = "My name is Egon , I'm 18 years old!" #多引号什么作用呢?作用就是多行字符串必须用多引号 msg = ''' 今天我想写首小诗, 阅读全文
posted @ 2018-06-01 10:15 sunwanling 阅读(868) 评论(0) 推荐(0)