二者的作用和区别 1. break:直接跳出当前循环体(while、for、do while)或程序块(switch)。其中switch case执行时,一定会先进行匹配,匹配成功返回当前case的值,再根据是否有break,判断是否继续输出,或是跳出判断。 2. continue:不再执行循环体中 ...
分类:
编程语言 时间:
2020-05-20 20:16:37
阅读次数:
89
语法:updat table_name set column_name1 = case id when 1 then 'a' when 2 then 'b' when 3 then 'c' end, colunm_name = case id when 1 then 'd' when 2 then ...
分类:
数据库 时间:
2020-05-20 17:17:00
阅读次数:
64
求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 思路:我们可以使用加法使用,不断递归即可 # -*- coding:utf-8 -*- class Solution: def Sum_Solution(s ...
分类:
编程语言 时间:
2020-05-20 12:45:11
阅读次数:
252
go的编程基础 1. go的注释方法 // :单行注释 /* */ :多行注释 例如: package main import "fmt" // func main() { /* fmt.Printf("hello, world\n") } */ func main() { fmt.Println( ...
分类:
编程语言 时间:
2020-05-20 12:35:56
阅读次数:
51
update jxgz_rymc r set Reorder = ( select i from ( SELECT ( @i := CASE WHEN @DepartmentId = t1.DepartmentId THEN @i + 1 ELSE 1 END ) AS i, (@Departmen ...
分类:
数据库 时间:
2020-05-19 20:36:02
阅读次数:
98
https://github.com/appium/mitmproxy-java 因为是基于java写的appium自动化。 希望能在跑case的过程中实现拦截请求并修改response的功能。 就调研了多种proxy的工具。 anyproxy是用js文件写的,可能实现需求。 又尝试了一下mitmp ...
分类:
编程语言 时间:
2020-05-19 18:55:04
阅读次数:
118
有问题先找 官方文档 :https://docs.microsoft.com/zh cn/windows/wsl/user support 而不是找其他的什么博客和教程,毕竟他们许多都没有更新,或可能是旧版本,比如这个: "点我" 再比如这个: "点我" 这些都老得不要不要的了。 2020年5月19 ...
package com.example.sevenzuoy; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import a ...
分类:
其他好文 时间:
2020-05-19 10:54:05
阅读次数:
50
题目 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 i ...
分类:
其他好文 时间:
2020-05-19 01:04:00
阅读次数:
58
学习内容 先上项目地址,一个简单的AVPlayerDemo: https://github.com/practiceqian/QCAVPlayerDemo AVPlayer学习 1. 几个播放器相关的类 AVPlayer、AVURLAsset、AVPlayerItem、AVPlayerLayer 2 ...
分类:
其他好文 时间:
2020-05-19 00:21:52
阅读次数:
80