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






Follow your heart

古之成大事者, 不惟有超世之才,亦有坚忍不拔之志!
 
 

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

2020年3月8日

python数据库迁移
摘要: 实际操作命令 1,python 文件.py db init 2,python xx.py db migrate -m '版本描述' 3,python xx.py db upgrade 4,python xx.py db history 查看版本号 5,python xx.py db downgrad 阅读全文
posted @ 2020-03-08 19:54 Follow_Your_Heart 阅读(461) 评论(0) 推荐(0)
 

2019年12月3日

第一个小工具——数据查询统计
摘要: from PyQt5 import QtCore, QtWidgets import sys import pymysql import dp_copy.rczy_sql as rczysql import dp_copy.wccyr_sql as wccyrsql class Ui_ANOVAWi 阅读全文
posted @ 2019-12-03 00:57 Follow_Your_Heart 阅读(220) 评论(0) 推荐(0)
 

2019年3月30日

带提示范围的猜数小游戏--python
摘要: import randomrandom_number = random.randint(1, 99)start_number, end_number = 1, 99while True: number = int(input('请输入一个%d到%d的整数:' % (start_number, end 阅读全文
posted @ 2019-03-30 10:18 Follow_Your_Heart 阅读(403) 评论(0) 推荐(0)
 

2019年1月24日

python中字符串的常见操作
摘要: demo:mystr = 'hello python' 1、find:mystr.find(str, start=0, end=len(mystr)),检测字符串中是否有要查询的字符,如果有返回开始的索引值,否则返回-1; 2、index:mystr.index(str, start=0, end= 阅读全文
posted @ 2019-01-24 19:13 Follow_Your_Heart 阅读(199) 评论(0) 推荐(0)
 

2018年10月31日

html表单相关标签及属性
摘要: 1、<form>标签 定义整体的表单区域 action属性 定义表单数据提交地址 method属性 定义表单提交的方式,一般有“get”方式和“post”方式 2、<label>标签 为表单元素定义文字标注 3、<input>标签 定义通用的表单元素 type属性 type="text" 定义单行文 阅读全文
posted @ 2018-10-31 17:01 Follow_Your_Heart 阅读(876) 评论(0) 推荐(0)
 
CSS常用属性
摘要: 布局常用样式属性: width 设置元素(标签)的宽度,如:width:100px; height 设置元素(标签)的高度,如:height:200px; background 设置元素背景色或者背景图片,如:background:gold; 设置元素背景色为金色 border 设置元素四周的边框, 阅读全文
posted @ 2018-10-31 16:29 Follow_Your_Heart 阅读(169) 评论(0) 推荐(0)
 

2018年9月13日

python装饰器
摘要: 装饰器:是一个以闭包形式的函数;在不改变现函数的的基础上增加其它功能。 格式:@装饰器函数名(外函数名) demo: import time # 调用时间模块 def count_time(func): # 外部函数 def wrapper(): # 内函数 start = time.time() 阅读全文
posted @ 2018-09-13 00:58 Follow_Your_Heart 阅读(177) 评论(0) 推荐(0)
 

2018年9月12日

python闭包的概念及使用
摘要: 闭包:在函数里定义了另外一个函数(函数嵌套),内函数里运用了外函数的变量,外函数返回内函数的函数引用(函数名)。 nonlocal 的使用:闭包内部函数可直接调用外部函数的变量,如果修改需要使用nonlocal,用法等同于global demo: def call_func(): # 外部函数 n 阅读全文
posted @ 2018-09-12 23:48 Follow_Your_Heart 阅读(211) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5