- 博客(6)
- 收藏
- 关注
原创 C# Microsoft.Office.Interop.Excel Could not load file Error
Fixed C# Microsoft.Office.Interop.Excel Could not load file Error
2022-11-15 15:05:30
949
原创 C#去除文本中的html标签以及对文本进行decode
C#去除文本中的html标签以及对文本进行decode原文:解决方案: public static string HtmlTagReplaceAndDecode(string str) { Regex regex = new Regex("<[\\w\\s\"-=/]+>"); Regex regex1 = new Regex("\\s+"); //把多个空格替换成一个空格 str =
2021-05-20 11:26:43
369
1
原创 Python关于找不到requests(No module named requests)解决方案
Python关于找不到requests(No module named requests)解决方案原因:没有requests的model或者requests的model没有更新解决办法:cmd命令下载更新requests1.下载pip install requests2.更新python -m pip install –upgrade pip...
2021-03-18 14:42:22
9236
1
原创 C#比较字符串并且忽略大小写
方案一 //compare string and ignore case Console.WriteLine("Input new string 1: "); string input1 = Console.ReadLine(); Console.WriteLine("Input new string 2: "); string input2 = Console.ReadLine(); if(inpu
2021-01-15 16:33:13
2627
原创 C#中的cs0116Error
详情:cs0116 C# a namespace cannot directly contain members such as fields or methods报错代码:using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MethodTesting{
2020-12-10 16:40:07
4242
1
原创 C#创建文件夹以及文件
目的:使用C#语言在“C:\Users\Confidence\Testing\”目录下创建新的文件夹以及文本文件(其他类型文件同理)。环境:Visual Studio 2019,Windows。代码如下: /// <summary> /// /// Create new directory and file if they are not exist /// /// </summary>
2020-12-01 17:35:13
13686
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅