package com.Leo.array;public class ArrayDemo02 { public static void main(String[] args) { //静态初始化:创建 + 赋值 int[] a = {1,2,3,4,5,6,7,8}; System.out.prin ...
分类:
编程语言 时间:
2021-06-10 18:01:59
阅读次数:
0
1. C#将每个单词首字母大写 private static string processing(string str)//处理这段英文的方法 { string[] strArray = str.Split("_".ToCharArray()); string result = string.Emp ...
类型转换 public class Demo02 { public static void main(String[] args) { //强制转换 (类型)变量名 高-->低 int i = 128; byte b = (byte) i;//内存溢出 System.out.println(i); ...
分类:
其他好文 时间:
2021-06-10 17:53:43
阅读次数:
0
场景: WPF界面调用C++动态库,由于库的名称不是固定的,因此没法用DllImport,想到了用windows api中的LoadLibrary,一番折腾后调用成功 关键代码: [DllImport("kernel32.dll")] private extern static IntPtr Loa ...
分类:
编程语言 时间:
2021-06-10 17:47:35
阅读次数:
0
position 规定元素的定位类型。参考链接:https://www.cnblogs.com/guolao/p/9048308.html static 默认值,正常布局,此时的top、right、bottom、left 属性无效。 absolute 绝对定位,相对于static 定位以外 的第一个 ...
分类:
Web程序 时间:
2021-06-10 17:39:38
阅读次数:
0
?这是啥算法题。。 逐个判断写个循环即可 class Solution: def fizzBuzz(self, n: int) -> List[str]: result = [] for i in range(1,n+1): if i % 3 == 0 and i % 5 == 0 : result ...
分类:
编程语言 时间:
2021-06-10 17:39:18
阅读次数:
0
配置示例 # setting.py配置如下 ## 访问 http://IP/static/***.css STATIC_URL = '/static/' ## python manage.py collectstatic时,把所有静态文件聚集到此目录下 STATIC_ROOT = os.path.j ...
分类:
其他好文 时间:
2021-06-10 17:37:06
阅读次数:
0
计算机网络 动态路由配置 RIP:Routing Information Protocol,路由信息协议,是应用较早、使用较普遍的IGP内部网关协议,适用于小型同类网络,是典型的距离矢量协议。 RIP协议跳数作为衡量路径开销的,RIP协议里规定最大跳数为15。 RIP协议有两个版本RIPv1和RIP ...
分类:
其他好文 时间:
2021-06-09 15:31:19
阅读次数:
0
演示 代码 from PyQt5.QtWidgets import * import sys class pushButton(QWidget): def __init__(self): super(pushButton,self).__init__() # 对方法进行调用 self.initUI( ...
分类:
其他好文 时间:
2021-06-09 15:30:07
阅读次数:
0
前言 有时候我们使用drf的Response,会发现默认返回的格式不太友好,每次我们都需要写入以下的格式 return Response({ "status": 0, "message": "成功", "results": serializer.data }) 这样会非常麻烦,我们想默认就有stat ...
分类:
其他好文 时间:
2021-06-09 15:29:52
阅读次数:
0