摘要: 1、给定字符串“python的创始人是Guido”,要求输出 Gudio oiduG ph的人uos = "python的创始人是Guido" l = len(s) print(s[11:l]) print(s[l:10:-1]) print(s[::3]) 2、有字符串"你"和"最帅",如何得到字符串"你最帅",又如何得到字符串"你最帅最帅最帅" s1 = "你" s2 = "最帅" pr... 阅读全文
posted @ 2018-12-05 20:28 王禹鑫 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1、Python的发展历史 龟叔 Guido van Rossum 1989年在圣诞节期间诞生 其特点:简单、明确、优雅 Python是解释型语言 是编译型语言 2、Python的基本数据类型 布尔型 True False 数值型 int float 单目运算符 + - ~ 算术运算符 ** / * 阅读全文
posted @ 2018-12-05 09:33 王禹鑫 阅读(123) 评论(0) 推荐(0) 编辑