/* */
摘要: 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) 编辑
摘要: 1.基本知识 1.1注释 单行注释# 多行注释''' ''' 需要注释内容 ''' 1.2变量和数据类型 定义规则:变量名=数据 基本数据类型:数字(int、float、complex、bool) 字符串(str) 字典(dict)——a={} 元组(Tuple)——a=() 列表(list)——a 阅读全文
posted @ 2020-12-02 17:13 柚柚汁呀 阅读(147) 评论(0) 推荐(0) 编辑
/*
*/