- 博客(5)
- 收藏
- 关注
原创 Python2中input出现的name “xxx” is not defined问题原因及解决办法
# coding=UTF-8'''Created on 2017年10月22日@author: Dyna'''str_1 = input("Enter a string:")str_2 = input("Enter another string:")print ("str_1 is:"+str_1+" str_2 is:"+str_2)print "str_1 is {} ,s
2017-10-22 15:16:55 24375
原创 Python函数参数中*与**的用法和区别
#可变参数def print_paras(fpara,*nums,**words): print ("fpara:"+str(fpara)) print ("nums:"+str(nums)) print ("words:"+str(words))print print_paras("Hello",1,3,5,7,word="pyhton",another_word=
2017-10-22 13:00:30 2925
原创 Mac OS下,终端下使用pip install *进行到导包后,Eclipse中仍然出现Unresolved错误
错误原因:eclipse中找不到已经下载的包解决方法:1、在终端使用命令查看自己的Python版本,打开Eclipse中的偏好设置,打开Python Interpreter。2、选择右侧的New Folder,将pip install *的现在路径放入其中。一般情况下如下图所示
2017-10-20 10:30:43 687
原创 Eclipse安装PyDev插件后,preference中不显示Pydev问题原因及解决办法
最近在Eclispe中安装PyDev插件后,preference中不显示PyDev,这个问题纠结了蛮久,上网查阅了一些博客和解决方法,均没有得到很好的解决。PyDev安装教程见http://www.cnblogs.com/Bonker/p/3584707.html,但是按照这种方法安装后preference中不显示PyDev,后来找到了原因。原因:这个插件地址是最新的,而Eclipse是依赖于
2017-10-19 21:26:21 1166
原创 在线安装Eclipse插件时,出现错误
在安装Eclipse插件时,总是出现An error occurred while collecting items to be installedsession context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, act
2017-10-19 20:23:51 3805
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人