• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
黄颖琪
博客园    首页    新随笔    联系   管理    订阅  订阅
05 2018 档案
文件操作

摘要:fr=open('12.txt',mode='r',encoding='utf-8') plaincode=fr.read() print('明文:'+plaincode) print('密文:',end='') for c in plaincode: print (chr(ord(c)+3),end='') fr = open('12333.txt',mode='r',encod... 阅读全文
posted @ 2018-05-30 21:21 黄颖琪 阅读(196) 评论(0) 推荐(0)
字符串操作

摘要:id='4401045199805230056' area=id[0:6] birthday=id[6:14] sex=id[-2] print(area,birthday,sex) if(int(sex)%2==0): print('girl') else: print('boy') print(ord('+')) print (chr(9800)) print (chr... 阅读全文
posted @ 2018-05-23 20:23 黄颖琪 阅读(169) 评论(0) 推荐(0)
玫瑰花 星星

摘要:import turtle turtle.bgcolor('red') turtle.pencolor('yellow') turtle.fillcolor('yellow') turtle.begin_fill() for i in range(5): turtle.forward(100) tu 阅读全文
posted @ 2018-05-09 20:51 黄颖琪 阅读(165) 评论(0) 推荐(0)
程序执行流程

摘要:import turtle turtle.shape('turtle') turtle.fillcolor('purple') turtle.begin_fill() turtle.circle(50) turtle.end_fill() myNumer=520 while True: guess=float(input('价格猜谜游戏')) if guess>myNum... 阅读全文
posted @ 2018-05-02 21:50 黄颖琪 阅读(219) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3