会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FBYi
博客园
首页
新随笔
联系
管理
订阅
05 2018 档案
文件操作
摘要:fr = open ('win.txt',mode='r',encoding='utf-8') win=fr.read() print('明文:'+ win) print('密文:',end='') for c in win: print(chr(ord(c)+3),end='') fw = open('bili.txt',mode ='a',encoding='utf-8') for...
阅读全文
posted @
2018-05-28 17:08
FBYi
阅读(136)
评论(0)
推荐(0)
字符串及其操作
摘要:stuNum ='201709080046' print('年级是:'+ stuNum[0:4]) print('专业编号是:'+stuNum[4:9]) print('序号是:'+stuNum[-3:]) stuNum= '440184199806180625' print('广东省;'+ stuNum[0:4]) print('生日:' + stuNum[6:14]) print(...
阅读全文
posted @
2018-05-21 16:10
FBYi
阅读(145)
评论(0)
推荐(0)
while循环与 for循环,函数定义与调用
摘要:import turtle turtle.bgcolor('light blue') turtle.color('pink') turtle.fillcolor('pink') turtle.begin_fill() while True: turtle.forward(150) turtle.right(260) if abs(turtle.pos())<1: ...
阅读全文
posted @
2018-05-14 16:51
FBYi
阅读(494)
评论(0)
推荐(0)
for循环
摘要:import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(90) # 花蕊 turtle.fillcolor("red") turtle.begin_fill() turtle.circle(10, 180) turtle.circle(25, 110)...
阅读全文
posted @
2018-05-07 16:31
FBYi
阅读(179)
评论(0)
推荐(0)
公告