编辑
2024-02-25
🧰语言-go
00

if-else

GO的控制结构和别的语言差不多,都是if-else if-else的这种用法

image.png

Go的if else支持一种新的写法,可以在if-else块里面定义一个新的局部变量。

在右边的distance的只作用于if-else块,离开了这个范围就无法使用了。

编辑
2024-01-19
👨‍🍳保鲜
00

该文章已加密,点击 阅读全文 并输入密码后方可查看。

编辑
2023-12-28
💻数据库
00

pgsql

  1. 查询json中的key,并且将key合并为一个字段
编辑
2023-12-28
🧰语言-python
00

1. 执行python manage.py mirgrations apppName 生成了迁移文件,但是没有在数据库中创建表

解决方法:

编辑
2023-12-25
📘总结-保持好奇心
00

The Joel Test: 12 Steps to Better Code

Have you ever heard of SEMA? It’s a fairly esoteric system for measuring how good a software team is. No, wait! Don’t follow that link! It will take you about six years just to understand that stuff. So I’ve come up with my own, highly irresponsible, sloppy test to rate the quality of a software team. The great part about it is that it takes about 3 minutes. With all the time you save, you can go to medical school.