会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小飞侠琅
博客园
首页
新随笔
联系
订阅
管理
2018年8月19日
【文件操作基础流程】
摘要: 【文件操作基础流程】 能调用的方法一定是对象 ┍ ┎ ┏ ┐ ┑ ┒ ┓ ─ ┄ ┼ ┼ │ ┌li=[1,2,3]li.append('2') .read #读取模式.write#写模式 f=open('wl','r',encoding='utf8') #打开文件wl 'r'读取模式 字符编码转'
阅读全文
posted @ 2018-08-19 12:12 小飞侠琅
阅读(120)
评论(0)
推荐(0)
2018年8月13日
python【字典】
摘要: # python【字典】 #【python字典】 字典2打特点:无序,键值唯一 # 创建并查询dic={'name':'wl','age':32,'add':'jj'}##print ('地址是',dic['add'])#运行结果:#地址是 jj # ~~~~~~~~~~~~~~~~~~~~~~~~
阅读全文
posted @ 2018-08-13 17:13 小飞侠琅
阅读(79)
评论(0)
推荐(0)
2018年8月12日
【列表】增删改查
摘要: #【列表】 name="a1" a= ['a1','a2','a3','a4','a5'] #取值范围 print(a[0:]) #从0取到最后 print(a[0:-1]) #从左到右取 倒数第一个 print(a[1:]) #从1取到最后范围最后值 print(a[1:-1:2]) #从左到右取
阅读全文
posted @ 2018-08-12 09:22 小飞侠琅
阅读(105)
评论(0)
推荐(0)
2018年8月9日
wheil循环 for循环
摘要: wheil循环 登录密码用户只能输入3次 counter = 0 "定义开始次数"_user = "wl"_password = "aaa123" while counter <3: username = input("Username:") password = input("password:"
阅读全文
posted @ 2018-08-09 12:43 小飞侠琅
阅读(658)
评论(0)
推荐(0)
python增【删改查】 【列表】
摘要: 【增删改查】【列表】 name="a1"a= ['a1','a2','a3','a4','a5'] #取值范围print(a[0:]) #从0取到最后print(a[0:-1]) #从左到右取 倒数第一个print(a[1:]) #从1取到最后范围最后值print(a[1:-1:2]) #从左到右取
阅读全文
posted @ 2018-08-09 12:41 小飞侠琅
阅读(122)
评论(0)
推荐(0)
2018年8月4日
python学习笔记
摘要: 变量 变量是为了存储和程序运算过程中的一些中间结果 方便以后调用 (变量命名规则) 1. 要具有描述性2.变量名只能_和数字,字母组成3.不以中文 为命名4.不能以数字开头5.保留字符不能被使用 常量 常量名全部大写代表是常量 实验作业#print("hello,world") #x=41#y=3
阅读全文
posted @ 2018-08-04 10:38 小飞侠琅
阅读(217)
评论(0)
推荐(0)
公告