示例1: """ 编写一个程序 用户可以输入用户名和密码 用户有三次机会 登录成功可以进行相应的操作 输入Q退出系统 """ name_list = ["zhangdada","wangxiaoxiao","lizhongzhong"] pwd_list = ["123","456","789"] ...
分类:
编程语言 时间:
2021-03-17 14:58:52
阅读次数:
0
import numpy as np import nvector as nv # 基于 geopandas 取 postgis数据 sql = 'SELECT * FROM node_table' g_out = gpd.read_postgis(sql=sql, con=pgisCon, geo ...
分类:
其他好文 时间:
2021-03-17 14:58:34
阅读次数:
0
client 版本0.1 public class RpcParam implements Serializable { private String name; } 版本0.2 public class RpcParam implements Serializable { private Stri ...
分类:
其他好文 时间:
2021-03-17 14:55:50
阅读次数:
0
Spring boot 中有时候需要控制配置类是否生效,使用 @ConditionalOnProperty 注解来控制 @Bean 是否生效。 例: @ConditionalOnProperty(prefix = "config",name = "enable",havingValue = "tru ...
分类:
其他好文 时间:
2021-03-17 14:53:37
阅读次数:
0
yml文件 基本用法 //传统xml配置: <server> <port>8081<port> </server> //yaml配置: server: prot: 8080 //行内写法 student: {name: qinjiang,age: 3} //数组( List、set )用 - 值表示 ...
分类:
编程语言 时间:
2021-03-17 14:48:05
阅读次数:
0
<!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta name="viewport" content="initial-sca ...
hasattr(object, name) hasattr() 函数用于判断对象是否包含对应的属性。如果对象有该属性返回 True,否则返回 False。 ...
分类:
其他好文 时间:
2021-03-17 14:28:45
阅读次数:
0
动画效果 代码 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-sc ...
分类:
其他好文 时间:
2021-03-17 14:25:03
阅读次数:
0
2021-03-13 22:42:16 星期六 1. 移动端常见特效 click移动端300s延时解决方案 原因:移动端双击屏幕会缩放 禁用缩放 <meta name="viewport" content="user-scalable=no" /> 利用touch事件自己封装这个事件 解决300ms ...
分类:
移动开发 时间:
2021-03-17 14:20:59
阅读次数:
0
1.对于 1<<(32或者更大),答案都是正常处理得到0 2.但是假如说1<<(x),x为一个变量,那么在移位前x会对32取模 ###验证 使用vs2019的c++项目,执行以下代码 #include <iostream> using namespace std; int main() { cout ...
分类:
编程语言 时间:
2021-03-17 14:15:23
阅读次数:
0