• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






15823420163

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 下一页

2020年4月11日

Day16:OOP:object-orinted-programing
摘要: 1 # dog1= { 2 # 'name' : "aliu", 3 # 'gender' : 'female', 4 # 'type' : 'dog' 5 # } 6 # dog2= { 7 # 'name' : "zxver", 8 # 'gender' : 'male', 9 # 'type' 阅读全文
posted @ 2020-04-11 17:04 Zxver-L 阅读(180) 评论(0) 推荐(0)
 

2020年4月9日

Day15:The simple calculator
摘要: 1 import re 2 3 def multifly_cha(s): 4 ret = float(s.split("*")[0]) * float(s.split("*")[1]) if "*" in s else float(s.split("/")[0]) / float(s.split(" 阅读全文
posted @ 2020-04-09 18:53 Zxver-L 阅读(110) 评论(0) 推荐(0)
 

2020年4月2日

Day14:logging
摘要: #The levels of logging:#print all levels:Critical>error>warning>info>debug# logging.basicConfig 1 # import logging 2 # logging.basicConfig( 3 # level= 阅读全文
posted @ 2020-04-02 17:16 Zxver-L 阅读(100) 评论(0) 推荐(0)
 

2020年3月30日

Day13:Configparser & hashlib &the supplement of re
摘要: Configparser : If you want get the data with this formation: [DEFAULT]ServerAliveInterval = 45Compression = yesCompressionLevel = 9ForwardX11 = yes [b 阅读全文
posted @ 2020-03-30 21:50 Zxver-L 阅读(109) 评论(0) 推荐(0)
 

2020年3月26日

Day12: os,sys,re,json,xml
摘要: OS: import sys,os # print(os.getcwd()) # print(os.chdir('..')) # # os.removedirs('dir1/dir2')#blank will be del,or can't # print(os.listdir()) #print( 阅读全文
posted @ 2020-03-26 18:14 Zxver-L 阅读(280) 评论(0) 推荐(0)
 

2020年1月12日

Day11:The time and random module
摘要: ''' # 1::module(.py): 1;excute related files 2;quote variables # 2::package # import ... # import module1[,module2,[module3]]... # from ...import ... 阅读全文
posted @ 2020-01-12 20:07 Zxver-L 阅读(91) 评论(0) 推荐(0)
 

2020年1月8日

Day10:Website's fetch and change function
摘要: 1 import os 2 def file_handler(backend,res=None,type='fetch'):# write the function to simplify the data 3 if type == 'fetch': 4 with open('proxy.conf' 阅读全文
posted @ 2020-01-08 20:01 Zxver-L 阅读(134) 评论(0) 推荐(0)
 

2020年1月3日

Day9: Decorator
摘要: # l = [1,2,3]# l.__iter_() #iter(l)# Decorator:it's a function and can add additional functions for other functions# Two principles:#. 1): can't modif 阅读全文
posted @ 2020-01-03 15:16 Zxver-L 阅读(115) 评论(0) 推荐(0)
 

2019年12月31日

Day8: Task : Review
摘要: # String Task: v='5+6' v1,v2 = v.split('+') v1 = int(v1) v2 = int(v2) v3 = v1 + v2 print(v3) template = "{a}like to {b} at{c}" v1 = input('>>>person:' 阅读全文
posted @ 2019-12-31 14:55 Zxver-L 阅读(125) 评论(0) 推荐(0)
 
Day7:Filesprocess,Iterator and Generator
摘要: # r r+ w w+ a(add in the eend b+""" # f = open('陈粒','r',encoding='utf-8') data = f.read() print(f.readable()) print(f.writable()) print(f.readline()) 阅读全文
posted @ 2019-12-31 14:48 Zxver-L 阅读(198) 评论(0) 推荐(0)
 
上一页 1 2 3 下一页