计算机导论学习第一课笔记

第一部分、字符串学习(使用PYTHON)html 一、字符串+数字的状况python   print 'apple'+'!'*3显示内容:apple!!! 二、索引字符串 app #显示内容:t print 'test'[0] #显示内容:末尾的‘t’ print 'test'[-1] 三、选择字符串的子序列 #显示内容:est print 'test'[1:] #不显示任何内容 print
相关文章
相关标签/搜索