05 2020 档案

摘要: 阅读全文
posted @ 2020-05-28 21:31 Pykingchen 阅读(83) 评论(0) 推荐(0)
摘要:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.spring 阅读全文
posted @ 2020-05-27 22:45 Pykingchen 阅读(137) 评论(0) 推荐(0)
摘要:/** * 账户的业务层实现类 * 曾经xml的配置: * <bean id="accountService" class="com.itheima.service.impl.AccountServiceImpl" * scope="" init-method="" destory-method=" 阅读全文
posted @ 2020-05-27 22:17 Pykingchen 阅读(267) 评论(0) 推荐(0)
摘要:def auth(db_type): def deco(func): def wrapper(*args, **kwargs): name = input('your name>>>:'.strip()) pwd = input('your password>>>:'.strip()) if db_ 阅读全文
posted @ 2020-05-27 19:56 Pykingchen 阅读(156) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2020-05-26 23:34 Pykingchen 阅读(121) 评论(0) 推荐(0)
摘要:与稳定版镜像相比,alpine镜像体积更小,只提供了基本的运行环境,缺少很多运行时的依赖。在构建使用了uwsgi的项目的镜像时会报错。 这时就需要安装一些所依赖的包 如图:步骤3 步骤2: 切换了apk的源,使用阿里云的alpine镜像源(提升下载速度) 步骤3: apk是alpine镜像的软件包下 阅读全文
posted @ 2020-05-26 14:43 Pykingchen 阅读(654) 评论(0) 推荐(0)
摘要:import timedef outter(func): print(1) def wrapper(*args, **kwargs): print(2) start = time.time() time.sleep(3) func(*args, **kwargs) stop = time.time( 阅读全文
posted @ 2020-05-25 22:23 Pykingchen 阅读(905) 评论(0) 推荐(0)
摘要:配置文件: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2020-05-25 22:21 Pykingchen 阅读(225) 评论(0) 推荐(0)
摘要:spring中ioc的配置: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2020-05-25 22:18 Pykingchen 阅读(104) 评论(0) 推荐(0)
摘要:mybatis中的一对一: 从表实体应该包含主表实体对象的引用 package com.itheima.domain;public class AccountUser extends Account { private String username; private String address; 阅读全文
posted @ 2020-05-23 23:45 Pykingchen 阅读(235) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd 阅读全文
posted @ 2020-05-23 18:43 Pykingchen 阅读(417) 评论(0) 推荐(0)
摘要:# 一:大前提# 闭包函数=名称空间与作用域+函数嵌套+函数对象# 核心点:名字的查找关系是以函数定义阶段为准# 什么是闭包函数# "闭"函数指的是该函数是内嵌函数# "包"函数指的是该函数包含对外层函数作用域名字的引用(不是对全局作用域)# 闭包函数:名称空间与作用域+函数嵌套def f1(): 阅读全文
posted @ 2020-05-23 11:22 Pykingchen 阅读(170) 评论(0) 推荐(0)
摘要:含义:python的名称空间就是把栈区中的进行分类,作用域是根据名称空间的作用范围和特点进行分类 # 一:名称空间namespace:存放名字的地方,是对栈区的划分# 有了名称空间之后,就可以在栈区中存放相同的名字,详细的,名称空间# 分为三种# 1.1 内置名称空间# 存放的名字:存放的pytho 阅读全文
posted @ 2020-05-21 20:26 Pykingchen 阅读(124) 评论(0) 推荐(0)
摘要:# 命名关键字形参,*后面就是命名关键字形参,(可以是*args) def func(a, b. *, x, y): pass # 形参混用的顺序:位置形参,默认形参,*args,命名关键字星饭,**kwargs def func(x, y=111, *args, z, **kwargs): pri 阅读全文
posted @ 2020-05-21 19:30 Pykingchen 阅读(1316) 评论(0) 推荐(0)