- 博客(20)
- 收藏
- 关注
原创 使用python屏幕截图存入word后不清晰的原因
由于存入python是对图片进行了缩放导致不清,所以就不对图片进行缩放,直接使用。也可以实现在word中完全显示。
2024-05-02 13:53:43
429
3
原创 错误: java.lang.NullPointerException: Attempt to invoke interface method ‘android.content.SharedPrefer
在getSharedPreferences方法中,name参数表示SharedPreferences的名称,mode参数表示SharedPreferences的访问模式。使用Context类的getSharedPreferences(String name, int mode)方法来获取SharedPreferences对象。使用上述方法获取到的SharedPreferences对象进行后续操作,如读取或写入数据。
2023-09-17 21:03:57
730
2
原创 背诵方歌demo
注册为ZiManager的信息接受者。注册为ZiManager的信息接受者。重新显示内容allZiDisplay。注册为ZiManager的信息接受者。管理SwapControl的消息。管理SwapControl的消息。管理SwapControl的消息。update判断全文是否正确。继承者,增加接受消息的功能。用trycatch处理即可。判断有效消息是否等于1条。判断有效消息是否等于1条。判断有效消息是否等于1条。修改字的状态为不可交换。
2023-07-08 23:22:53
121
原创 cocos 踩坑记录 02
我一开始以为是场景切换,没有完全加载脚本导致的,一直在这个方向上搜索解决,未果。就仔细看了下报错信息,采用这种方式竟然成功了!开来以后得仔细看报错信息。一开始就在a场景中没有任何问题。用trycatch处理即可。
2023-06-15 17:34:23
243
原创 cocos踩坑之Can not find cc.Component in the script 7ddfe6kjgpBwYHTb27tzuEi.
【代码】cocos踩坑之Can not find cc.Component in the script 7ddfe6kjgpBwYHTb27tzuEi.
2023-06-13 19:29:12
507
1
原创 游戏框架之消息框架梳理
player相当于一个发送信息的类,其内部调用MessageCenter.SendCustomMessage()发送消息。ComponentBase继承cc.Component,并增加接收消息功能,之后每个类都继承ComponentBase。MessageCenter负责管理管理类发送消息, 切所有方法属性均为静态,已实现全局调用。HopControl未接收消息后实在的动作执行者。注册为UIManager的消息接受者。注册为UIManager的消息接受者。发消息给Hpcontol。
2023-06-12 23:07:01
172
原创 mermaid学习笔记之类图
显式使用关键字类,例如定义 Animal 类。通过一次定义两个类及其关系的关系。例如。fill:#333;stroke:1;fill:none;important;important;important;important;important;important;important;important;important;important;important;important;important;important;important;important;
2023-06-12 20:57:02
915
原创 Mermaind学习笔记
1,节点fill:#333;color:#333;color:#333;fill:none;id带文字节点Unicode文本多行文本`Line1Line2line3`
2023-06-11 13:15:26
514
原创 第五十二课 有限状态机
新建脚本flystate,diestate。birdcontroller中。新建状态,状态机脚本。导入之前的打小鸟素材。添加两个button。游戏外挂,状态机示例。
2023-06-10 22:59:03
101
原创 第五十一课 游戏框架
ComponentBase继承cc.Componet,并增加接受消息功能, 之后的每个类都继承ComponentBase。新建脚本 Message, MessageCenter, ComponentBase, ManagerBase。MessgeType 在Message中。为保证初始化 于onload中写。只要是子类掉父类,均应该这样写。新建脚本uimanager。创建Script文件夹。hp下新建label。
2023-06-10 22:58:22
103
原创 【无标题】There was an unexpected error (type=Internal Server Error, status=500).
漏掉$出错
2023-01-27 18:17:39
513
原创 springMVC中ajax使用json 对象 出现 状态代码: 415 Unsupported Media Type
【代码】springMVC中ajax使用json 对象 出现 状态代码: 415 Unsupported Media Type。
2023-01-18 16:54:20
353
原创 java setContentType 为utf-8中文仍为乱码
resp.setHeader("Content-Type","text/html;charset=utf-8");后;中文仍为乱码
2022-09-08 21:38:41
1393
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人