/* */
摘要: 1.1函数基础 函数定义: def 函数名(): 代码块 函数的调用: 函数名() def print_info(): print("hello") pass print_info() 1.2函数参数 def 函数名(参数列表): def print_info(name,age,hight) pri 阅读全文
posted @ 2020-12-03 11:51 柚柚汁呀 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1.字符串及常用方法 序列:一组顺序排列的值,3种类型(字符串、列表、元组) 特征:支持索引和切片,索引值从0位开始 切片:不可越界,可根据序列对象获取任意数据,【起始下标:结束下标:步长】 test='pythonhhhhhhh' print(test[0:10:2]) print(test[:: 阅读全文
posted @ 2020-12-03 10:55 柚柚汁呀 阅读(138) 评论(0) 推荐(0) 编辑
/*
*/