- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 【功能程序 Python】批量更改图片大小
import numpy as np import cv2 import os # 图片所在位置 dir_path = '/Users/frank/Downloads/project/' for filename in os.listdir(dir_path): # 下面可以更改图片的格式 if filename.endswith(".jpeg"): filena...
2020-04-15 11:26:44 143
原创 【Android Studio JAVA 学习笔记】布局Layout
布局是控件的容器,一个布局下可以有多个控件,也可以有多个子布局。 布局之间的关系:包含关系,并列关系。 由函数setContentView()调用XML布局文件 布局类型:线性布局(水平线性布局,竖直线性布局)、约束布局、表格布局 ...
2020-04-10 09:26:00 342
原创 【Android Studio JAVA 学习笔记】UI控件
文章目录Button点击事件方法一方法二Label Button 点击事件 方法一 通过id绑定变量与控件,设置Button变量的点击事件 //定义变量 private Button myButton = null; //通过id绑定变量与控件 myButton = (Button)findViewById((R.id.Button01)); myButton.setOnClickListene...
2020-04-10 09:23:48 188
原创 【COCOS2D-X v4 C++ 学习笔记】Sprite
文章目录1.创建Sprite1.1简单创建使用图像创建使用矩形创建1.2使用图集创建1.3使用精灵缓存创建2.控制Sprite2.1锚点 参考自官方文件精灵Sprite 1.创建Sprite 1.1简单创建 使用图像创建 使用整张图像,图像是多少的分辨率,创建出来的精灵就是多少的分辨率。 auto mySprite = Sprite::create("mysprite.png"); 结果: &...
2020-04-10 09:15:44 165
原创 【Android Studio JAVA 学习笔记】活动Activity
文章目录1.一般活动的创建与结束2.启动App2.1电话2.2短信2.3网页3.活动间的数据传递3.1逐条发送到新活动3.2打包发送到新活动3.3数据返回4.Activity的生命周期 1.一般活动的创建与结束 //活动创建 Intent intent = new Intent(MainActivity.this,A01Activity.class); startActivity(i...
2020-04-10 08:51:22 232
原创 【Mac解决报错】Can not connect to the Service chromedriver
具体报错信息如下: selenium.common.exceptions.WebDriverException:Message: Can not connect to the Service chromedriver 在host文件中添加以下信息: 127.0.0.1 localhost host文件:在finder中点击前往,前往文件夹/private/etc/,若无权限修改文件,右击文件在详细...
2019-03-18 08:52:52 1043
python橡皮筋鼠标、参数绘制直线(引力场)、矩形、圆
2019-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人