- 博客(6)
- 收藏
- 关注
原创 Springboot编程思想-@Enable模块驱动
引入@Enable模块驱动的意义在于,可以实现"按需实现",并且可以屏蔽组件集合装备的细节本文基于小马哥-《springboot编程思想》总结,其中代码和结论均出自《springboot编程思想》基于注解实现@Enable模块声明一个@EnableHelloWorld注解类,并将需要注入的配置类通过@Import方式注入@Target(ElementType.TYPE)@Rete...
2019-07-25 15:51:16
1524
原创 Python学习之set
Python学习之set一、基础属性# -*- coding:UTF-8 -*-s = {1, 2, 3, 4, 5} # 无序,不可重复# 长度print(len(s))# 循环for i in s: print(i),# 5# 1 2 3 4 5二、内部其他功能1.增:def add(self, *args, **kwargs)
2018-01-30 00:11:09
167
原创 Python学习之字典(dict)
Python学习之字典(dict)一、基本属性# -*- coding: UTF-8 -*-di = {"username":"admin", "password":"1234", "name":"Mike", "age":27}# 索引print(di["name"])# Mike# 长度print(len(di))# 4# 遍历# 1.遍历键for
2018-01-28 00:03:03
329
原创 Python学习之元组(tuple)
Python学习之元组(tuple)一、基本属性# -*- coding: UTF-8 -*-tu = ("Tom", "Jerry", "Mike")# 索引print(tu[0])# 切片print(tu[1:3])# 长度print(len(tu))# 遍历for t in tu: print(t),# Tom# ('Jerry',
2018-01-27 22:40:47
198
原创 Python学习之列表(list)
Python学习之列表(list)一、列表基本属性# -*- coding: UTF-8 -*-li = ["Tom", "Jerry", "Mike"]# 索引print(li[2])# 切片print(li[1:2])# 长度print(len(li))# 遍历for i in li: print(i),# Mike# ['Jerry'
2018-01-27 22:28:57
175
原创 自学Python01---字符串
自学Python01—字符串api1.def capitalize(self)首字母大写# -*- coding: UTF-8 -*-str = "you are beautiful"print(str.capitalize())# Result:# You are beautiful2.def center(self, width, fillchar=None
2018-01-27 00:28:54
285
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人