上一页 1 2 3 4 5 6 7 8 9 ··· 39 下一页
摘要: ``` python 一般MySQL 数据库乱码由以下几种情况造成(按照顺序): 1. 创建数据库的时候没设置编码,解决办法: 就是在创建数据库的时候设置编码, 例如: CREATE DATABASE CHARACTER SET utf8 COLLATE utf8_general_ci; 2. 创建 阅读全文
posted @ 2019-08-13 15:19 xushukui 阅读(2607) 评论(0) 推荐(0) 编辑
摘要: python package main import ( "fmt" "time" ) func main() { ch := make(chan string) go func() { fmt.Println("go func start....") time.Sleep(time.Second 阅读全文
posted @ 2019-08-05 14:20 xushukui 阅读(433) 评论(0) 推荐(0) 编辑
摘要: ``` python package main import ( "encoding/json" "errors" "fmt" "reflect" "strconv" "time" ) type User struct { a string b string } type S struct { Us 阅读全文
posted @ 2019-08-05 10:25 xushukui 阅读(4306) 评论(0) 推荐(0) 编辑
摘要: 转自: https://www.cnblogs.com/CHEUNGKAMING/p/5709796.html python 上面呢就是通过命令行连接数据库 说完连接,那就是导入的了,说起来,最近我还真是跟着命令行玩上了啊 如果是本地导入呢,语句格式则是:mysql h 主机地址(本机localho 阅读全文
posted @ 2019-07-24 18:21 xushukui 阅读(8540) 评论(0) 推荐(0) 编辑
摘要: 转自: https://blog.csdn.net/weixin_37579123/article/details/89515577 __new__方法:类级别的方法 __init__方法:实例级别的方法 阅读全文
posted @ 2019-07-22 18:09 xushukui 阅读(1187) 评论(0) 推荐(0) 编辑
摘要: 转自: https://studygolang.com/articles/11313 golang中是没有class的,但是有一个结构体struct,有点类似,他没有像java,c++中继承的概念,但是他有一个类似功能的结构嵌入 简单的结构体声明和使用 匿名结构体 函数中结构体作为参数,如果不是用结 阅读全文
posted @ 2019-07-22 16:48 xushukui 阅读(16790) 评论(0) 推荐(1) 编辑
摘要: 转自: https://www.jianshu.com/p/901820e17ffb 结构体基础 匿名结构体在四种常见情景下的用法。 组织全局变量 数据模版 测试案例数据 嵌入式锁 (Embedded lock) 阅读全文
posted @ 2019-07-22 16:35 xushukui 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 转自: http://c.biancheng.net/view/66.html 基本的实例化形式 创建指针类型的结构体 取结构体的地址实例化 阅读全文
posted @ 2019-07-22 16:28 xushukui 阅读(2975) 评论(0) 推荐(0) 编辑
摘要: 转自: https://www.liaotaoo.cn/200.html python package main import "fmt" type student struct{ id int name string score int } func main(){ //结构体数组存储多为学员信息 阅读全文
posted @ 2019-07-22 16:25 xushukui 阅读(10125) 评论(0) 推荐(0) 编辑
摘要: ``` python 1. 从官网下载pycharm-2018.1.6, 下的是PyCharm Professional Edition版本的 (水平有限版本太高,激活不了) pycharm官网: https://www.jetbrains.com/pycharm/download/previous.html 2. 进入到下载目录把下载的压缩包解压 tar -xf pycharm-p... 阅读全文
posted @ 2019-04-19 16:03 xushukui 阅读(1791) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 39 下一页