<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[AshlingCD]]></title><description><![CDATA[不一样的眼光，不一样的世界]]></description><link>https://blog.csdn.net/AshlingCD</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; AshlingCD]]></copyright><item><title><![CDATA[python.extend]]></title><link>https://blog.csdn.net/AshlingCD/article/details/105473267</link><guid>https://blog.csdn.net/AshlingCD/article/details/105473267</guid><author>AshlingCD</author><pubDate>Sun, 12 Apr 2020 18:09:17 +0800</pubDate><description><![CDATA[a = [1, 2, 3, 4, 5]
b = [6, 7, 8]
a.extend(b)
print('a.extend(b) = ', a)


a.extend(b) =  [1, 2, 3, 4, 5, 6, 7, 8]

extend是在列表末尾一次性追加的另一个序列中的多个值，即扩展原来的列表，原始的连接操作会返回一个全新的列表

使用extend方法会直接修改列表数据，extend...]]></description><category></category></item><item><title><![CDATA[python环境配置查询版本]]></title><link>https://blog.csdn.net/AshlingCD/article/details/82220177</link><guid>https://blog.csdn.net/AshlingCD/article/details/82220177</guid><author>AshlingCD</author><pubDate>Thu, 30 Aug 2018 13:53:52 +0800</pubDate><description><![CDATA[1、已安装python，使用cmd命令不能查询版本，检查环境变量是否配置

2、打开cmd命令窗口，输入path=%path%;C:\Program Files\Python36

C:\Program Files\Python36是python安装目录

3、输入python -V查询版本，输入python -version、python -Version、python -v指令均无效...]]></description><category></category></item><item><title><![CDATA[ModuleNotFoundError: No module named 'pdfkit'——已解决]]></title><link>https://blog.csdn.net/AshlingCD/article/details/80300105</link><guid>https://blog.csdn.net/AshlingCD/article/details/80300105</guid><author>AshlingCD</author><pubDate>Sun, 13 May 2018 16:16:01 +0800</pubDate><description><![CDATA[模仿别人的程序自己也写了一个，但是最后Debug总是报这个ModuleNotFoundError: No module named 'pdfkit'错误1.pdfkit已经安装Requirement already satisfied: pdfkit in e:\development tools\python\install3.6.5\lib\site-packages (0.6.1)2.PyC...]]></description><category></category></item><item><title><![CDATA[Java MyEclipse 实现微信跳一跳小程序]]></title><link>https://blog.csdn.net/AshlingCD/article/details/79054695</link><guid>https://blog.csdn.net/AshlingCD/article/details/79054695</guid><author>AshlingCD</author><pubDate>Sun, 14 Jan 2018 00:28:55 +0800</pubDate><description><![CDATA[准备 Java 运行与编译环境（JDK7.0以上）

一、环境配置
1.1、下载OpenCV：官网 https://opencv.org/opencv-3-2.html，下滑最后选择sourceforge进行下载




1.2、extract安装到自定义文件夹，将 \opencv\build\java\中的opencv-320.jar，复制到Java工程的lib文件夹中，添加为B]]></description><category></category></item><item><title><![CDATA[input中submit和button的区别]]></title><link>https://blog.csdn.net/AshlingCD/article/details/78992101</link><guid>https://blog.csdn.net/AshlingCD/article/details/78992101</guid><author>AshlingCD</author><pubDate>Sat, 06 Jan 2018 22:24:57 +0800</pubDate><description><![CDATA[在写到提交的时候混淆了submit和button，结果一直没能跳转界面。
区别：
1、submit和button,二者都以按钮的形式展现,看起来都是按钮，所不同的是type属性和处发响应的事件上:submit会提交表单，button不会提交表单
submit默认为form提交，可以提交表单（form）. 
button则响应用户自定义的事件,如果不指定onclick等事件处理函数，它是不做]]></description><category></category></item><item><title><![CDATA[Description Resource Path Location Type——已解决]]></title><link>https://blog.csdn.net/AshlingCD/article/details/78935606</link><guid>https://blog.csdn.net/AshlingCD/article/details/78935606</guid><author>AshlingCD</author><pubDate>Fri, 29 Dec 2017 23:32:05 +0800</pubDate><description><![CDATA[<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:aop="ht]]></description><category></category></item><item><title><![CDATA[Python学习笔记（五）]]></title><link>https://blog.csdn.net/AshlingCD/article/details/75910605</link><guid>https://blog.csdn.net/AshlingCD/article/details/75910605</guid><author>AshlingCD</author><pubDate>Sun, 23 Jul 2017 14:56:46 +0800</pubDate><description><![CDATA[一、Unicode与str
s1 = u"这是什么字符串"
s2 = unicode ("这是什么字符串", "utf-8")
print s1
print s2
s3 = "这是什么字符串"
print s3
su = "这是什么字符串"
u = s3.decode ("utf-8")  # s3被解码为Unicode对象，赋值给u
sg = u.encode ("gbk")  # u被编码为]]></description><category></category></item><item><title><![CDATA[Python学习笔记（四）]]></title><link>https://blog.csdn.net/AshlingCD/article/details/75635586</link><guid>https://blog.csdn.net/AshlingCD/article/details/75635586</guid><author>AshlingCD</author><pubDate>Fri, 21 Jul 2017 11:53:48 +0800</pubDate><description><![CDATA[一、del()函数
del()删除引用而不是删除对象(数据)，对象由自动垃圾回收机制删除
1）. python不允许程序员选择采用传值还是传引用。Python参数传递采用的肯定是“传对象引用”的方式。
实际上，这种方式相当于传值和传引用的一种综合。如果函数收到的是一个可变对象（比如字典或者列表）的引用，就能修改对象的原始值——相当于通过“传引用”来传递对象。如果函数收到的是一个不可变对象（比]]></description><category></category></item><item><title><![CDATA[Python学习笔记（一）]]></title><link>https://blog.csdn.net/AshlingCD/article/details/75570714</link><guid>https://blog.csdn.net/AshlingCD/article/details/75570714</guid><author>AshlingCD</author><pubDate>Thu, 20 Jul 2017 18:01:01 +0800</pubDate><description><![CDATA[因为学习需要，自学Python，以下为个人的学习心得及汇集相关知识点。
一、输出print "hello,world"
print "你好，世界"
printhello,world
你好，世界最后一句输出结果是空一行。如果在语句后面添加“，”，结果为将两个语句输出在同一行。
print "hello,world",
print "你好，世界"hello,world 你好，世界二、标识符
1.]]></description><category></category></item><item><title><![CDATA[Python学习笔记（三）]]></title><link>https://blog.csdn.net/AshlingCD/article/details/75503279</link><guid>https://blog.csdn.net/AshlingCD/article/details/75503279</guid><author>AshlingCD</author><pubDate>Thu, 20 Jul 2017 11:34:38 +0800</pubDate><description><![CDATA[一、嵌套循环
'''
嵌套循环输出2~100之间的素数：
'''
def a(x):
    i = 2
    while(i < x):
       j = 2
       while(j <= (i/j)):
            if not(i%j): break  # i%j表示取余数，如果为0，break
            j = j + 1
       if (j]]></description><category></category></item><item><title><![CDATA[Python学习笔记（二）]]></title><link>https://blog.csdn.net/AshlingCD/article/details/75448391</link><guid>https://blog.csdn.net/AshlingCD/article/details/75448391</guid><author>AshlingCD</author><pubDate>Wed, 19 Jul 2017 20:19:48 +0800</pubDate><description><![CDATA[一、Python的基本加减
a = 2
b = 3
c = 90
print "a=", a, "  b=", b, "  c=", c
c = a + b
print "a+b=", c
c = a - b
print "a-b=", c
c = a ** b
print "a**b=", c
if (a is not b):
    print "a is not b"
else:]]></description><category></category></item><item><title><![CDATA[安装Python插件autopep8]]></title><link>https://blog.csdn.net/AshlingCD/article/details/75309132</link><guid>https://blog.csdn.net/AshlingCD/article/details/75309132</guid><author>AshlingCD</author><pubDate>Tue, 18 Jul 2017 17:03:58 +0800</pubDate><description><![CDATA[Autopep8是什么请自行百度。
一、下载autopep8，网址：https://pypi.python.org/pypi/autopep8/
二、解压后，运行命令行
三、Windows系统输入安装命令：python -m pip install autopep8


四、上图为安装成功
五、打开PyCharm，File-->setting-->
 tools-->externa]]></description><category></category></item><item><title><![CDATA[No result defined for action  result input]]></title><link>https://blog.csdn.net/AshlingCD/article/details/72307480</link><guid>https://blog.csdn.net/AshlingCD/article/details/72307480</guid><author>AshlingCD</author><pubDate>Tue, 16 May 2017 16:53:23 +0800</pubDate><description><![CDATA[里面的type="submit"改成type="button"]]></description><category></category></item><item><title><![CDATA[The given object has a null identifier]]></title><link>https://blog.csdn.net/AshlingCD/article/details/72176461</link><guid>https://blog.csdn.net/AshlingCD/article/details/72176461</guid><author>AshlingCD</author><pubDate>Mon, 15 May 2017 16:41:20 +0800</pubDate><description><![CDATA[left.jsp
 
            /Vol_update.action" target="rightFrame">编辑信息
        
        
我的action中没有update这个方法，而我却调用了这个方法，才会一直报错
改成
 
            /Vol_updateByvolid.action" target="rightFrame">编辑信息
]]></description><category></category></item><item><title><![CDATA[SSH--Hibernate传值为乱码 || 显示为乱码]]></title><link>https://blog.csdn.net/AshlingCD/article/details/72056771</link><guid>https://blog.csdn.net/AshlingCD/article/details/72056771</guid><author>AshlingCD</author><pubDate>Sun, 14 May 2017 19:39:09 +0800</pubDate><description><![CDATA[1.MySQL数据库编码设为UTF-8




2.Myeclipse编码格式
右键项目→Properties→Resource




3.Hibernate配置文件.xml


数据库名称?useUnicode=true&amp;characterEncoding=utf8
（有些是"&"不能用的）]]></description><category></category></item><item><title><![CDATA[SSH--Hibernate传值进数据库]]></title><link>https://blog.csdn.net/AshlingCD/article/details/72054439</link><guid>https://blog.csdn.net/AshlingCD/article/details/72054439</guid><author>AshlingCD</author><pubDate>Sun, 14 May 2017 19:21:27 +0800</pubDate><description><![CDATA[jsp页面：
  	
	  	/Vol_update.action" method="post">
		    
				 
					序号*volunteer.id" type="text" class="dfinput" value=" ${id }"  style="width:518px;"/>
				    编号*volunteer.volid" type="text" class=]]></description><category></category></item><item><title><![CDATA[SSH登录验证用户账号密码实现]]></title><link>https://blog.csdn.net/AshlingCD/article/details/71680289</link><guid>https://blog.csdn.net/AshlingCD/article/details/71680289</guid><author>AshlingCD</author><pubDate>Thu, 11 May 2017 19:32:28 +0800</pubDate><description><![CDATA[SSH登录验证用户账号密码实现
	@SuppressWarnings("unchecked")
	public boolean findByUser(String userid, String userpwd) {
		String hql = "from Userinfo where userid='" + userid + "' and userpwd='"+ userpwd + "'";
]]></description><category></category></item><item><title><![CDATA[SSH框架 DAO注入失败 ---总结]]></title><link>https://blog.csdn.net/AshlingCD/article/details/71594957</link><guid>https://blog.csdn.net/AshlingCD/article/details/71594957</guid><author>AshlingCD</author><pubDate>Wed, 10 May 2017 21:02:14 +0800</pubDate><description><![CDATA[开始运行SSH框架，发现service调用dao层时候一直报空指针错误，各种查看配置文件和调用，终于发现了问题
在action层里面写了一句this.setUserService(new UserServiceImpl());
既然是注入，就不用new一个了

下面附上Java代码
UserAction.java
	private User user=new User();
	priv]]></description><category></category></item><item><title><![CDATA[java.lang.NoSuchMethodException: com.gxuwz.aiImage.web.struts.UserAction.user()]]></title><link>https://blog.csdn.net/AshlingCD/article/details/71410237</link><guid>https://blog.csdn.net/AshlingCD/article/details/71410237</guid><author>AshlingCD</author><pubDate>Mon, 08 May 2017 14:15:11 +0800</pubDate><description><![CDATA[java.lang.NoSuchMethodException: com.gxuwz.aiImage.web.struts.UserAction.user()

Struts.xml

我的类里面并没有user()的方法，可是却一直报这个错误
后来找到问题，是我的jsp的from表单路径写错了

这个User_user.action里面，user是action类里面的方法，我只写有l]]></description><category></category></item><item><title><![CDATA[java随机抽取指定范围内不重复的n个数]]></title><link>https://blog.csdn.net/AshlingCD/article/details/71304819</link><guid>https://blog.csdn.net/AshlingCD/article/details/71304819</guid><author>AshlingCD</author><pubDate>Sat, 06 May 2017 21:55:25 +0800</pubDate><description><![CDATA[一、JAVA中生成随机数的方式
1、在j2se中使用Math.random()令系统随机选取一个0~1之间的double类型小数，将其乘以一个数，比如25，就能得到一个0~25范围内的随机数，这个在j2me中没有；   





int randomNumber = (int) Math.round(Math.random()*(max-min)+min); 



2、在]]></description><category></category></item></channel></rss>