一 .字符串操作 1单引号('').双引号("").三引号(""" """)的区别. 如果字符串中不包含单引号.双引号,则三个引号没有区别. msg1="Today is a nice day,everyday is a new day" print(msg1) Today is a nice day,everyday is a new day 如果字符串中包含单引号,则应使用双引号或者三引号. msg2=…
开始 Python 之旅 课程来源 本课程基于 Python for you and me 教程翻译制作,其中参考了 Python tutorial 和 The Python Standard Library,并对原教程的内容进行了改进与补充. 相关链接地址如下: Python tutorial:http://www.pythondoc.com/pythontutorial3/index.html Python for you and me:http://pymbook.readthedocs.…