摘要: time 模块 time 模块下三种时间格式: stamptime 时间戳 ,常用的time.time() 返回的就是一个时间戳 1659513403.53 format time eg 2984-01-15 16:31:20 time tuple eg time.struct_time(tm_ye 阅读全文
posted @ 2022-08-03 16:41 Orientation 阅读(53) 评论(0) 推荐(0) 编辑
摘要: C# 中的值类型 bool 布尔值 True 或 False Falsechar 16 位 Unicode 字符 U +0000 到 U +ffff '\0'decimal 128 位精确的十进制值, 28-29 有效位数 (-7.9 x 1028 到 7.9 x 1028) / 100 到 28 阅读全文
posted @ 2022-08-01 18:06 Orientation 阅读(57) 评论(0) 推荐(0) 编辑
摘要: curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端(client)的 URL 工具的意思。 它的功能非常强大,命令行参数多达几十种。如果熟练的话,完全可以取代 Postman 这一类的图形界面工具。 附上 curl 手册 直译手册中描述:curl 提供了一大卡车的小技巧,像  阅读全文
posted @ 2022-07-27 20:37 Orientation 阅读(791) 评论(0) 推荐(0) 编辑
摘要: pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 目前如果你在 python.org 下载最新版本的安装包,则是已经自带了该工具。 注意:Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。 pip 官网:htt 阅读全文
posted @ 2022-07-27 20:16 Orientation 阅读(461) 评论(0) 推荐(0) 编辑
摘要: window下安装django Python 下载地址:https://www.python.org/downloads/ Django 下载地址:https://www.djangoproject.com/download/ 安装完成后你需要设置 Python 环境变量。 右击计算机->属性->高 阅读全文
posted @ 2022-07-26 21:06 Orientation 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 Debian系列 Debian系列主要包含Debian和Ubuntu等Debian最具特色的是apt-get/dpkg包管理方式,在二进制文件发行方式中,APT应该是最好的了。Debian的资料也很丰富,有很多支持的社区,比较方便找到解决问题的方法。Debian社区的网址:https://deb 阅读全文
posted @ 2022-07-26 20:38 Orientation 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 虚拟环境: 安装虚拟环境 1.通过pip安装虚拟环境: -- pip install virtualenv 2.前往目标文件夹创建纯净虚拟环境: -- virtualenv 虚拟环境名 (py3-env1) 4.终端启动虚拟环境: -- cd py3-env1\Scripts -- activate 阅读全文
posted @ 2022-07-26 19:24 Orientation 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 创建用户并设置密码 adduser username #添加用户 passwd username #为用户设置密码 添加文件权限 chmod 777 filename 阅读全文
posted @ 2022-07-25 21:29 Orientation 阅读(615) 评论(0) 推荐(0) 编辑
摘要: ddl database define language # 新建数据库 create database if not exists database_name character set 'utf8' # 新建数据表 create table table_name ( id int (7) stu 阅读全文
posted @ 2022-07-24 21:03 Orientation 阅读(21) 评论(0) 推荐(0) 编辑
摘要: python 3.x import pymysql conn=pymysql.connect(host,port,user,passwd,database,chartset)cursor=conn.cursor()row_count=cursor.execute('show databases;') 阅读全文
posted @ 2022-07-13 20:06 Orientation 阅读(24) 评论(0) 推荐(0) 编辑