摘要:
知识点1 引用模块 调用方法 设置参数 知识点2 画一个五角星 边长100,向右角度72 循环5次 知识点3 for循环 for x in range(5): 等同于 for x in range(0,5,1): 知识点4 实例画五角星 180-36=144 right的角度为144 知识点4 展示 阅读全文
摘要:
知识点1 变量必须赋初值后才能使用 知识点2 换一种形式 知识点3 求类型 type() 知识点4 用双等号 做判断 是否为真 知识点5 截取字符串 知识点6 倒序展示 知识点7 不同类型相加会报错 知识点8 8.1转义字符 8.2空格 8.3 换行 8.4 \ 8.5 成员运算符 in 8.6成云 阅读全文
摘要:
知识点1间隔符号sep=''输入代码:print('www','baidu','com',sep='.')获得结果如图 知识点2input 输入值 str=input('请输入一个值')print('你输入的值是:',str) 注意:1.输出的字符串必须是用双引号引起来的 否则报错 invaild 阅读全文