上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页
摘要: Beego 框架学习笔记 03:Put、Delete 一、Put 修改 goods.go: package controllers import ( "github.com/astaxie/beego" ) type GoodsController struct { // 首字母要大写 beego. 阅读全文
posted @ 2020-12-16 22:12 Wonz 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 一、Get article.go 里添加代码: package controllers import ( "fmt" "github.com/astaxie/beego" ) type ArticleController struct { // 首字母要大写 beego.Controller } f 阅读全文
posted @ 2020-12-16 22:00 Wonz 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 一、安装、新建项目 首先需要安装 beego 环境,安装 bee 脚手架等。具体可以参考我的这篇文章:Go 安装教程。 然后在文件夹下新建一个 beego 项目: bee new beegodemo 然后,需要进入 beegodemo 文件夹下,如果没有 go mod 文件,需要 init 一下: 阅读全文
posted @ 2020-12-16 21:54 Wonz 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 一、填充字符串 1. 位置 print("hello {0}, this is {1}.".format("world", "python")) # 根据位置下标进行填充 print("hello {}, this is {}.".format("world", "python")) # 根据顺序自 阅读全文
posted @ 2020-12-15 19:49 Wonz 阅读(3342) 评论(0) 推荐(0) 编辑
摘要: 一、问题复现 运行 Django 项目的时候报错:django.db.utils.ProgrammingError: (1146, "Table 'tmsdata.sysMgr_syslog' doesn't exist")。 翻译一下就是表不存在的意思,其实就是数据库迁移出了问题,需要重新迁移一下 阅读全文
posted @ 2020-12-14 21:47 Wonz 阅读(3072) 评论(0) 推荐(0) 编辑
摘要: Django2.2报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 9737: illegal multibyte sequence 一、问题复现 File "D:\Python\Python37-32\lib 阅读全文
posted @ 2020-12-14 21:41 Wonz 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 一、方法 首先要进入 MySQL 服务,输入 mysql 发现报错:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)。 换成以下命令: $ mysql -u root -p 然后输入数 阅读全文
posted @ 2020-12-10 20:50 Wonz 阅读(1601) 评论(0) 推荐(0) 编辑
摘要: 一、快速上手 下载源代码 我是下载到本地然后通过 Xftp 传到 Linux 环境里的。 然后解压至当前目录: $ unzip GmSSL-master.zip 编译与安装 Linux平台使用以下命令: $ ./config $ make $ sudo make install 安装完后查看版本: 阅读全文
posted @ 2020-12-10 20:32 Wonz 阅读(2756) 评论(0) 推荐(0) 编辑
摘要: 一、VirtualBox 网络设置 打开 VirtualBox 的设置,再点击网络,连接方式选桥接网卡。 二、虚拟机设置网络 启动虚拟机,输入下面命令进入网络配置目录: cd /etc/sysconfig/network-scripts/ 查看一下有哪些文件(后面两个是我之前备份的,不用管): ls 阅读全文
posted @ 2020-11-30 20:48 Wonz 阅读(7194) 评论(0) 推荐(0) 编辑
摘要: Problem LeetCode Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution s 阅读全文
posted @ 2020-11-27 22:12 Wonz 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 26 下一页