<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mucangmang的博客]]></title><description><![CDATA[一个爱做梦的人]]></description><link>https://blog.youkuaiyun.com/mucangmang</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mucangmang]]></copyright><item><title><![CDATA[断点调试单个html页面--VsCode编辑器使用]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81916760</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81916760</guid><author>mucangmang</author><pubDate>Wed, 22 Aug 2018 00:07:04 +0800</pubDate><description><![CDATA[       在使用vscode调试单个html，一直不得其法，懒的去google仔细研究了；

       百度了好些文章都是关于如何调试整个网站部署iis等服务器的；

       找到这篇讲的不错，测试了下可以使用。

       具体内容看这里：

     https://blog.youkuaiyun.com/arvin0/article/details/53673351...]]></description><category></category></item><item><title><![CDATA[新的访问修饰符--C#7.2]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81865052</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81865052</guid><author>mucangmang</author><pubDate>Mon, 20 Aug 2018 06:40:05 +0800</pubDate><description><![CDATA[public
			无限制的访问，所有类型均可访问
		protected
			仅所在类及其派生类可访问
		internal
			所在的程序集内的成员均可访问
		protected internal
			所在的程序集或者其派生类可访问
		private
			仅所在类可访问
		private protected
			仅所在类或在当前程序集内其派生子类可访问，C#7.2后可用
		其...]]></description><category></category></item><item><title><![CDATA[Expression Trees--C#]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81629358</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81629358</guid><author>mucangmang</author><pubDate>Tue, 14 Aug 2018 00:42:44 +0800</pubDate><description><![CDATA[https://docs.microsoft.com/en-us/dotnet/csharp/expression-trees

一，表达式树能做什么

  1）表达式树加强方法和参数的交互；

  2）表达式树可以在运行时操作代码，比如检查运行的算法，增加新的功能。

二，表达式树是什么

  以var sum = 1 + 2为例，该语句就可以看作表达式树：

声明变量(var sum)

	v...]]></description><category></category></item><item><title><![CDATA[Pattern Matching(模式匹配新用法，C#7.0)--C#]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81626031</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81626031</guid><author>mucangmang</author><pubDate>Mon, 13 Aug 2018 14:03:22 +0800</pubDate><description><![CDATA[今天突然看到C#7.0的Pattern Matching有一些新的用法，特意了解下。

https://docs.microsoft.com/en-us/dotnet/csharp/pattern-matching

Pattern Matching 分离数据和代码，与ood模式把数据和方法封装在一起不同。

1， is类型模式表达式

  以下是一个shape的例子，这里面没有定义什么的shap...]]></description><category></category></item><item><title><![CDATA[Freezable对象概述--WPF]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81592802</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81592802</guid><author>mucangmang</author><pubDate>Sun, 12 Aug 2018 01:00:49 +0800</pubDate><description><![CDATA[MSDN解释：

      Defines an object that has a modifiable state and a read-only (frozen) state. Classes that derive from Freezable provide detailed change notification, can be made immutable, and can clo...]]></description><category></category></item><item><title><![CDATA[Command概述--WPF]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81559134</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81559134</guid><author>mucangmang</author><pubDate>Fri, 10 Aug 2018 15:25:30 +0800</pubDate><description><![CDATA[Command的MSDN解释

 

一，什么是命令

     根据microsoft的解释，command是一种不同于输入设备的语义级别上的输入处理机制。

     Command的目的：

             1）降低代码耦合度，将Command的逻辑和调用对象进行分离；

             2）可以指定对象是否可用（例如：剪切按钮--在选中文本时才有效）；

     Co...]]></description><category></category></item><item><title><![CDATA[RalativeSource Property理解-WPF]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81535460</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81535460</guid><author>mucangmang</author><pubDate>Thu, 09 Aug 2018 13:58:23 +0800</pubDate><description><![CDATA[https://stackoverflow.com/questions/84278/how-do-i-use-wpf-bindings-with-relativesource

If you want to bind to another property on the object(同一个Element):


{Binding Path=PathToProperty, RelativeSour...]]></description><category></category></item><item><title><![CDATA[override和overload以及new(遮蔽)的区别--C#]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81533955</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81533955</guid><author>mucangmang</author><pubDate>Thu, 09 Aug 2018 11:45:26 +0800</pubDate><description><![CDATA[Overloading = Multiple method signatures, same method name
	Overriding = Same method signature (declared virtual), implemented in sub classes
   简单来说：

          overload（重载）是方法名相同，参数不同，在同一个类中同一个函数可以重...]]></description><category></category></item><item><title><![CDATA[attribute的用法--C#]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81490002</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81490002</guid><author>mucangmang</author><pubDate>Wed, 08 Aug 2018 06:57:30 +0800</pubDate><description><![CDATA[一直以来都没理解attribute是个什么东西，也没怎么用，但是看msdn或者git上源码使用的还是蛮频繁的，今天好好整理了下，写下自己的理解和例子：

attribute主要用来说明代码段的的信息，标志等；可以一种元数据结构，不会影响到代码段的结果。这个代码段可以是class,struct,method,constructor等结构，下面会给出反编译源码说明哪些代码段可以作为目标。


    ...]]></description><category></category></item><item><title><![CDATA[读取CSV文件到DataTable--C#]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81434377</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81434377</guid><author>mucangmang</author><pubDate>Sun, 05 Aug 2018 19:39:55 +0800</pubDate><description><![CDATA[从CSV读取数据到DataTable（这里第一行是标题，因此需要排除）：


/// &amp;lt;summary&amp;gt;
        /// generate DataTable instance from CSV file
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name=&quot;seperator&quot;&amp;gt;seperator of CSV...]]></description><category></category></item><item><title><![CDATA[读取Excel文件到DataTable--C#]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/81434314</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/81434314</guid><author>mucangmang</author><pubDate>Sun, 05 Aug 2018 19:35:43 +0800</pubDate><description><![CDATA[兼容xls和xlsx格式，它们的连接对象不同；

xls是oledb4.0

xlsx是oledb12.0

代码如下所示：


 public static DataTable ExcelToDataTable(string filePath)
        {
            string connStr = &quot;&quot;;
            string fileType = Sys...]]></description><category></category></item><item><title><![CDATA[Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2解决方法]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/80025834</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/80025834</guid><author>mucangmang</author><pubDate>Sat, 21 Apr 2018 01:07:20 +0800</pubDate><description><![CDATA[在运行jupyter notebook 出错C:\Users\92143&amp;gt;jupyter notebook
Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2重新安装jupyterpip3 install --upgrade --force-reinstall --no-cach...]]></description><category></category></item><item><title><![CDATA[pip升级出错--解决方法]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/80025689</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/80025689</guid><author>mucangmang</author><pubDate>Sat, 21 Apr 2018 00:23:50 +0800</pubDate><description><![CDATA[在windows下cmd升级pip出错，估计可能跟安装了两个python版本有关C:\Users\92143&amp;gt;python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917...]]></description><category></category></item><item><title><![CDATA[python基础之%s和%r的区别]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79823583</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79823583</guid><author>mucangmang</author><pubDate>Thu, 05 Apr 2018 01:40:10 +0800</pubDate><description><![CDATA[在python中，%s和%r的对应调用方法如下，它们都可以用来转换字符串。%s -&amp;gt; str%r -&amp;gt; repr其中，str的可读性强，repr倾向于表明一个对象的详细信息。一般来说，在一个类中，__repr__一般都会又，__str__不一定有，而当__str__()函数没有定义的时候，__repr__定义的话，调用str和repr一样，即是str=repr。     看下面的例子，...]]></description><category></category></item><item><title><![CDATA[在crontab中无法执行docker-compose的命令的解决方法]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79789931</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79789931</guid><author>mucangmang</author><pubDate>Mon, 02 Apr 2018 15:26:28 +0800</pubDate><description><![CDATA[    经过多次实验，终于找到在crontab中执行docker-compose命令的方法。    即使是用cd /home/user/program切换目录到项目里面，用docker-compose执行也是没有效果的，    其中最关键的是，要写命令的全路径，唯有把docker-compose程序的全路径/usr/local/bin/docker-compose添加到shell脚本中去，才会执行...]]></description><category></category></item><item><title><![CDATA[安装twisted出现rc.exe(1158)错误]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79783865</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79783865</guid><author>mucangmang</author><pubDate>Mon, 02 Apr 2018 04:26:37 +0800</pubDate><description><![CDATA[  python中安装twisted模块的时候在win10系统出现如下错误： 已完成代码的生成
    LINK : fatal error LNK1158: 无法运行“rc.exe”
    error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.exe' failed with e...]]></description><category></category></item><item><title><![CDATA[因修改/etc/sudoers权限导致sudo和su不能使用的解决方法]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79741545</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79741545</guid><author>mucangmang</author><pubDate>Thu, 29 Mar 2018 13:52:01 +0800</pubDate><description><![CDATA[原文请看：点击打开链接亲测，很好的解决方法]]></description><category></category></item><item><title><![CDATA[使用C#改变windows系统本地时间]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79660920</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79660920</guid><author>mucangmang</author><pubDate>Thu, 22 Mar 2018 22:20:39 +0800</pubDate><description><![CDATA[当我们从他人的服务器上获取数据的时候，因为客户端和服务器时间不同步的原因导致获取数据失败。有时候需要同步时间服务器， 当怎么同步时间服务器都没用的时候，我们可以适当的更改本地系统时间。在windows更改本地时间的通常做法是时：1，首先定义一个结构体[StructLayout(LayoutKind.Sequential)] 		
        public struct SYSTEMTIME
 ...]]></description><category></category></item><item><title><![CDATA[python基础之__new__的用法介绍]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79599251</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79599251</guid><author>mucangmang</author><pubDate>Mon, 19 Mar 2018 00:54:56 +0800</pubDate><description><![CDATA[今天介绍下__new__的用法：__new__是新式类中出现，是一种静态方法。在python官方文档中，介绍了在那些情况下可以使用：Use __new__ when you need to control the creation of a new instance. Use __init__ when you need to control initialization of a new ins...]]></description><category></category></item><item><title><![CDATA[python基础之lambda函数以及filter,map,reduce的用法]]></title><link>https://blog.youkuaiyun.com/mucangmang/article/details/79602648</link><guid>https://blog.youkuaiyun.com/mucangmang/article/details/79602648</guid><author>mucangmang</author><pubDate>Sun, 18 Mar 2018 23:11:11 +0800</pubDate><description><![CDATA[python用lambda来实现匿名函数的作用，经常与filter(),map()和reduce()函数一起使用。首先介绍lamda函数：例如：&amp;gt;&amp;gt;&amp;gt; def f(x):return x**2
...
&amp;gt;&amp;gt;&amp;gt; print(f(4))
16
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; g = lambda x:x**2
&amp;gt;&amp;gt;&amp;gt; p]]></description><category></category></item></channel></rss>