- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 Xshell5连接vmvare中的Ubuntu失败原因及解决方法
1.在xshell5上新建一个,输入名字和虚拟机中Ubuntu的ip地址(用ifconfig命令查看),点击确定、连接;第二步:2.若连接失败,则进入Ubuntu用 sudo apt-get install openssh-server 命令安装openssh-serve;此时可能会遇到安装失败的情况,原因是依赖关系(如下图)。3.此时再按提示安装对应版本的包,对应图上的命令为sudo apt...
2019-07-25 22:10:10
668
原创 win10未分配空间转可用空间方法(亲测可用)
1.用分区助手等软件将未分配的分区合并到相邻分区2.在合并后的分区压缩卷,数值填入“可用”的大小3.此时你会发现该块内存已经是可用空间。
2018-12-06 20:49:26
17309
1
转载 Hardcoded string "xxxxxxxxxxxx", should use @string resource警告
在布局文件中,文本的设置使用如下写法时会有警告:Hardcoded string “下一步”, should use @string resource[html] view plaincopy <Button &...
2018-07-26 17:54:02
10414
1
原创 在AndroidStudio中查看方法用法
首先请确认在SDK manager中已安装Documentation for Android SDK(docs); 若已安装,将光标选中函数,按下F2即可。
2018-07-25 09:45:22
1642
原创 Android studio “ Cannot resolve symbol 'data' ”解决办法
问题如图所示 而原因就是一些包未导入…. 作为新手 我也不知道到底该导入哪些包 于是索性设置自动导入需要的包 具体方法如下 AndroidStudio——File——settings——搜索“auto import”,勾选图中红框所示选项——OK ...
2018-07-24 21:51:29
8375
原创 警告“Casting 'findViewById(R.id.XXX)' to 'XXX' is redundant”的原因及解决办法
说明该控件不需要强制转换 故只需将findViewById(R.id.XXX)之前的强制转换去掉即可
2018-07-24 21:40:02
6803
原创 Android Studio --“Cannot resolve symbol” 解决办法
解决方法如下: 在方法之前加上如下代码以导入相关包…….import android.content.Intent; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import an...
2018-07-23 22:55:47
4529
2
原创 Python添加graphic是
将下面链接中的 graphics.py放入与python.exe同个文件夹下即可运行。下面是一个测试程序。http://download.csdn.net/download/chowyoungyoung/10171476
2017-12-24 18:13:04
839
转载 python中eval()函数官方文档的说明
eval(expression, globals=None, locals=None)The arguments are a string and optional globals and locals. If provided, globals must be a dictionary. If provided, locals can be any mapping object.The
2017-12-23 23:10:50
901
1
原创 CMD命令下进入某个文件夹然后打开.py文件
例如:我想进入“F:\eclipseworkspace\chapter6_MOOC\src”,然后打开其中的“123.py”文件。1.运行命令提示符2.输入 F:3.输入 cd F:\eclipseworkspace\chapter6_MOOC\src 注意:"cd"之后有一个空格 此时,文件夹就已经切换到了“F:\eclipseworkspace\cha
2017-12-23 22:58:02
5893
2
转载 Python中eval()函数的功能及使用方法
eval(str)函数很强大,官方解释为:将字符串str当成有效的表达式来求值并返回计算结果。所以,结合math当成一个计算器很好用。eval()函数常见作用有: 1、计算字符串中有效的表达式,并返回结果>>> eval('pow(2,2)')4>>> eval('2 + 2')4>>> eval("n + 4")8512345672、将字符串转成相应的对象(如list、tuple、d
2017-12-23 14:50:27
25022
原创 用eclipse写Python,当其交互式程序时交互方法
当要运行的程序为交互式程序时,需要我们输入某值作为其中某参数。此时我们可以点击下图中右下角小红框内的图标(Pin console)后即可输入。
2017-12-22 15:31:28
969
转载 用eclipse写Python时总是提示报错可能的原因——设定编码
设置编码如下:1.windows->preferences->General->Editors->Text Editors->Spelling,Encoding改成Other:UTF-8,点击Apply。如下图2.windows->preferences->General->Workspace,Text file encoding改成Other:UTF-8,然后点击
2017-12-22 15:17:54
1724
python中graphics模块
2017-12-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人