摘要:
原文链接:https://blog.csdn.net/fengxing11/article/details/39827753 HTML中<, >,&等有特别含义,(前两个字符用于链接签,&用于转义),不能直接使用。使用这三个字符时,应使用他们的转义序列。 转义字符串(Escape Sequence) 阅读全文
posted @ 2024-04-28 18:21
yinghualeihenmei
阅读(49)
评论(0)
推荐(0)
摘要:
一直以为split是用来分隔字符的,没想到还可以分隔数组。让程序变得更简单。微软官网的介绍在此记录下。 https://learn.microsoft.com/zh-cn/dotnet/csharp/how-to/parse-strings-using-split 1、分单个字符 string ph 阅读全文
posted @ 2024-04-26 17:13
yinghualeihenmei
阅读(162)
评论(0)
推荐(0)
摘要:
写了老半天,还是电脑写的更简单,原来split还可以这么用(可以为数组),学到了。记录下 //我写的 public static string RetrieveSpanTimeByTime(string firstTime, string endTime) { int firstDayIndex = 阅读全文
posted @ 2024-04-26 16:49
yinghualeihenmei
阅读(26)
评论(0)
推荐(0)
摘要:
datetable调用函数,一般可以在数据库里加函数。因为c#已经写好了,再转过去比较耗时间,也不一定能转过去,所以用了这种方法:先查出datetable,用参数直接调用c#方法。 Func<int, int> customMethod = x => x * x; foreach (DataRow 阅读全文
posted @ 2024-04-25 18:02
yinghualeihenmei
阅读(25)
评论(0)
推荐(0)
摘要:
原文链接:https://www.zhihu.com/question/644793665/answer/3475948283 edge浏览器下载文件显示不安全,无法下载。 第一种方法:点击保留 第二种方法:可能是chrome内核的edge对 http 地址的权限收紧。需要针对这个地址的权限做配置。 阅读全文
posted @ 2024-04-24 14:28
yinghualeihenmei
阅读(2675)
评论(0)
推荐(0)
摘要:
学到了一种,将时常全都转换为分钟,利用分钟进行相加减,再将分钟转换为时长 其中,1天时长是1440分钟 阅读全文
posted @ 2024-04-24 10:10
yinghualeihenmei
阅读(18)
评论(0)
推荐(0)
摘要:
C#中截取字符串某个字符之前的字符,可以通过以下几种实现方法: 1、使用 Substring 方法:可以使用字符串的 Substring 方法根据指定字符的位置来截取字符串。例如,假设要截取字符串中第一个等号之前的字符,代码如下: string str = "Hello=World"; int in 阅读全文
posted @ 2024-04-23 14:41
yinghualeihenmei
阅读(4101)
评论(0)
推荐(1)
摘要:
public bool IsUgly(int n) { if(n<=0) { return false; } int [] nums=[2,3,5]; foreach( int i in nums) { while(n%i==0) { n/=i; } } // if(n==1) // { // re 阅读全文
posted @ 2024-04-19 23:57
yinghualeihenmei
阅读(15)
评论(0)
推荐(0)
摘要:
原文链接:https://blog.csdn.net/yabingshi_tech/article/details/132718295 前言: 当连接数据库失败次数过多时,MySQL 是否会限制登录呢?数据库服务端应该怎么应对暴力破解呢?本篇文章介绍下 MySQL 中的连接控制插件,一起来学习下此插 阅读全文
posted @ 2024-04-19 17:11
yinghualeihenmei
阅读(381)
评论(0)
推荐(0)
摘要:
原文链接:https://blog.csdn.net/weixin_46106069/article/details/129183418 今天看到了安装validate_password 插件, 查下是什么,学习下。 MySQL密码复杂度策略设置:MySQL 系统自带有 validate_passw 阅读全文
posted @ 2024-04-19 16:48
yinghualeihenmei
阅读(22)
评论(0)
推荐(0)
浙公网安备 33010602011771号