
生成可上架的Storyboard启动屏的最快方法
使用非原生框架开发IOS的APP,启动屏的Storyboard需要自定义,最新的版本已经不能使用图片作为启动屏,需要编写Storyboard的XML代码。
假如你不想了解Storyboard的XML语法,可以使用香蕉云编来在线生成Storyboard启动屏
https://www.yunedit.com/qidongping
它的使用方法是你上传一个正方形的logo图片,它就可以帮你生成一个Storyboard的启动屏zip文件。如下图所示:

然后打包的时候,启动屏参数选中这个zip的启动屏文件即可,如下图所示:
使用非原生框架开发IOS的APP,启动屏的Storyboard需要自定义,最新的版本已经不能使用图片作为启动屏,需要编写Storyboard的XML代码。
假如你不想了解Storyboard的XML语法,可以使用香蕉云编来在线生成Storyboard启动屏
https://www.yunedit.com/qidongping
它的使用方法是你上传一个正方形的logo图片,它就可以帮你生成一个Storyboard的启动屏zip文件。如下图所示:
然后打包的时候,启动屏参数选中这个zip的启动屏文件即可,如下图所示:
收起阅读 »
借助外部工具, 优化HBuilder X 编辑的快捷使用 --alt+鼠标左键
适用环境: window
工具: autohotkey;
网址: (https://www.autohotkey.com/)
比如有个非常脑残的设计 alt+鼠标左键
跳转 而且无法修改这个快捷键, 这个不能忍,
只能借助外部工具实现 crlt+ 鼠标左键
下面是常用的几个快捷键分享:
-
crlt+ 鼠标左键 : 跳转文件
-
crlt+r : ios真机运行
-
crlt+e: 安卓真机运行
-
输入l 回车/空格 : 直接输出console.log()
#Requires AutoHotkey v2.0
; ^t::
; {
; Send "My First Script"
; }
; ^t:: MsgBox "test"
; OutputVar := InputBox("What is your first name?", "Question 1").Value
; MsgBox "That's an awesome name, " OutputVar "."
; ::yx::test@example.com
GroupAdd "CODE", "ahk_exe Code.exe" ;vscode环境
GroupAdd "HB", "ahk_exe HBuilderX.exe" ;HB环境
#HotIf WinActive("ahk_group CODE")
; :*:l::console.log(){Left} ; 直接触发了无需任何按键
; :o:l::console.log(){Left} ; o忽略后续输入触发的按键
#HotIf
#HotIf WinActive("ahk_group HB")
^r:: Send "^r5" ; 执行ios运行真机
^e:: Send "^r4" ; 执行andriod运行真机
; :*:l::console.log(){Left} ; 直接触发了无需任何按键
:o:l::console.log(){Left} ; o忽略后续输入触发的按键
^LButton:: { ; Ctrl+左键热键
SendPlay "{Ctrl Up}"
Sleep 100
Send "{Alt down}" ; 持续按下Alt键 [6]()
Sleep 100 ; 等待100ms确保光标变成小手
Send "{Click Left}" ; 模拟鼠标右键点击 [6]()
Sleep 100 ; 保持右键按下状态
Send "{Alt up}" ; 释放Alt键
}
^Space:: { ;唤起云打包
Send "!u" ; Alt+f 打开「发行」菜单
Sleep 100 ; 等待菜单展开
Send "p" ; 发送「云打包」的快捷键字母(具体根据菜单定义)
; ControlFocus "App打包"
Sleep 300
MouseMove 132, 430, 0
Click
Send "123456{Tab}"
Send 123456
; ios 相关输入
; Sleep 500
; MouseMove 128, 136 ;148105
; Click
; Sleep 300
; MouseMove 145, 370, 0
; Click
; Send 123456
}
#HotIf
适用环境: window
工具: autohotkey;
网址: (https://www.autohotkey.com/)
比如有个非常脑残的设计 alt+鼠标左键
跳转 而且无法修改这个快捷键, 这个不能忍,
只能借助外部工具实现 crlt+ 鼠标左键
下面是常用的几个快捷键分享:
-
crlt+ 鼠标左键 : 跳转文件
-
crlt+r : ios真机运行
-
crlt+e: 安卓真机运行
-
输入l 回车/空格 : 直接输出console.log()
#Requires AutoHotkey v2.0
; ^t::
; {
; Send "My First Script"
; }
; ^t:: MsgBox "test"
; OutputVar := InputBox("What is your first name?", "Question 1").Value
; MsgBox "That's an awesome name, " OutputVar "."
; ::yx::test@example.com
GroupAdd "CODE", "ahk_exe Code.exe" ;vscode环境
GroupAdd "HB", "ahk_exe HBuilderX.exe" ;HB环境
#HotIf WinActive("ahk_group CODE")
; :*:l::console.log(){Left} ; 直接触发了无需任何按键
; :o:l::console.log(){Left} ; o忽略后续输入触发的按键
#HotIf
#HotIf WinActive("ahk_group HB")
^r:: Send "^r5" ; 执行ios运行真机
^e:: Send "^r4" ; 执行andriod运行真机
; :*:l::console.log(){Left} ; 直接触发了无需任何按键
:o:l::console.log(){Left} ; o忽略后续输入触发的按键
^LButton:: { ; Ctrl+左键热键
SendPlay "{Ctrl Up}"
Sleep 100
Send "{Alt down}" ; 持续按下Alt键 [6]()
Sleep 100 ; 等待100ms确保光标变成小手
Send "{Click Left}" ; 模拟鼠标右键点击 [6]()
Sleep 100 ; 保持右键按下状态
Send "{Alt up}" ; 释放Alt键
}
^Space:: { ;唤起云打包
Send "!u" ; Alt+f 打开「发行」菜单
Sleep 100 ; 等待菜单展开
Send "p" ; 发送「云打包」的快捷键字母(具体根据菜单定义)
; ControlFocus "App打包"
Sleep 300
MouseMove 132, 430, 0
Click
Send "123456{Tab}"
Send 123456
; ios 相关输入
; Sleep 500
; MouseMove 128, 136 ;148105
; Click
; Sleep 300
; MouseMove 145, 370, 0
; Click
; Send 123456
}
#HotIf
收起阅读 »

使用uniapp打包的APP查询公钥的方法
现在APP上架,不管是原生应用也好,uniapp开发的应用也好,上架前都需要备案。
而备案的时候的一个很重要的技术参数,就是APP的公钥、MD5值和SHA1值这些参数需要填写。
无论是公钥、MD5值还是SHA1值这些信息其实都是可以通过打包的证书查询。
但是网上很多使用命令将证书的公钥查出来的方法,或者是使用java代码将公钥查出来,都是不能用的,因为通过这些方法查出来的只是原始格式的公钥,base64格式的公钥。并不是上架需要填写的格式。
这里,可以使用香蕉云编来在线查询公钥的值,上传证书即可获取。
IOS的公钥的查询工具(包含MD5和sha1值、sha256值的查询):
https://www.yunedit.com/iosmd5
安卓公钥的查询工具:
https://www.yunedit.com/androidmd5
现在APP上架,不管是原生应用也好,uniapp开发的应用也好,上架前都需要备案。
而备案的时候的一个很重要的技术参数,就是APP的公钥、MD5值和SHA1值这些参数需要填写。
无论是公钥、MD5值还是SHA1值这些信息其实都是可以通过打包的证书查询。
但是网上很多使用命令将证书的公钥查出来的方法,或者是使用java代码将公钥查出来,都是不能用的,因为通过这些方法查出来的只是原始格式的公钥,base64格式的公钥。并不是上架需要填写的格式。
这里,可以使用香蕉云编来在线查询公钥的值,上传证书即可获取。
IOS的公钥的查询工具(包含MD5和sha1值、sha256值的查询):
https://www.yunedit.com/iosmd5
安卓公钥的查询工具:
https://www.yunedit.com/androidmd5

同样的代码打包 这两天突然就提示 App超限打包余额不足
同样的代码,突然就打不了包了
提示: App超限打包余额不足,当前可打包大小为 40 M,请清除项目下无用文件再重试;或登录开发者中心(https://dev.dcloud.net.cn),选择“App云打包增值服务”- “App大小超限充值”进行自助充值后,再提交打包。
请问一下 是怎么回事,怎么处理?
同样的代码,突然就打不了包了
提示: App超限打包余额不足,当前可打包大小为 40 M,请清除项目下无用文件再重试;或登录开发者中心(https://dev.dcloud.net.cn),选择“App云打包增值服务”- “App大小超限充值”进行自助充值后,再提交打包。
请问一下 是怎么回事,怎么处理?
收起阅读 »
大家的HBuilderX有这样的问题吗?——官方的Markdown语法帮助文档的文档结构图显示不完整
今天准备复习一下Markdown语法。
在Mac上打开HBuilderX的Markdown语法帮助文档,在打开文档结构图时,发现文档结构图显示的标题目录并不完整,好像从某个地方开始就不再显示了。
不知道各位的HBuilderX有没有这样的问题,还是个人电脑的问题。
无论如何,不弄清原因,今晚都是睡不香的,于是就从那个出现问题的地方开始排查,果真船到桥头自然直,一下子找到了原因。
原来是文档中,有个地方在插入单行代码时同行使用三对反引号,导致文档结构图显示不完整。
然后就去请教了一下温柔的桃子姐姐,回到文档折腾一番,找到了几个解决的方法,如下图所示,供有同样问题的bug友参考。
方法一、在三对反引号前加个序号
方法二、把三对反引号改成二对反引号
方法三、把三对反引号改成一对反引号
最后,结合查询资料和个人实践,总结一下,如下图所示。
- 插入单行代码时,应该使用一对反引号;
- 插入多行代码时,应该不同行使用三对反引号;
以上只是个人的一点看法,时间有限,不太周全,如有错漏,请不要批评但要指正~~~
今天准备复习一下Markdown语法。
在Mac上打开HBuilderX的Markdown语法帮助文档,在打开文档结构图时,发现文档结构图显示的标题目录并不完整,好像从某个地方开始就不再显示了。
不知道各位的HBuilderX有没有这样的问题,还是个人电脑的问题。
无论如何,不弄清原因,今晚都是睡不香的,于是就从那个出现问题的地方开始排查,果真船到桥头自然直,一下子找到了原因。
原来是文档中,有个地方在插入单行代码时同行使用三对反引号,导致文档结构图显示不完整。
然后就去请教了一下温柔的桃子姐姐,回到文档折腾一番,找到了几个解决的方法,如下图所示,供有同样问题的bug友参考。
方法一、在三对反引号前加个序号
方法二、把三对反引号改成二对反引号
方法三、把三对反引号改成一对反引号
最后,结合查询资料和个人实践,总结一下,如下图所示。
- 插入单行代码时,应该使用一对反引号;
- 插入多行代码时,应该不同行使用三对反引号;
以上只是个人的一点看法,时间有限,不太周全,如有错漏,请不要批评但要指正~~~
收起阅读 »
没有能力就老老实实二开VScode多好,hbuilder一坨什么东西????
没有能力就老老实实二开VScode多好,hbuilder一坨什么东西????
没有能力就老老实实二开VScode多好,hbuilder一坨什么东西????

win电脑发布(上传)ipa文件到appstore经验分享
最近想发布ipa文件到appstore的时候,发现在app store填写资料的时候,需要xcode或其他mac电脑的软件来上传ipa文件,还需要多种尺寸的ios app的截屏。
这可是难为我们windows电脑的开发者了。
最后,我发现并不需要mac电脑也可以上架的,可以使用香蕉云编来实现。
下面是我上架appstore的经验分享:
先登录苹果开发者平台,点进去app store connect的app管理
新建一个app(假如你还没创建才需要创建),如下图,新建app的时候,套装ID这一项是最重要的,因为代表应用的ID,需要跟我们在hbuilderx填写的appId一模一样才行。
创建完后,你就可以见到app的列表界面有这个app了,如下:
点击app的名字,进去就开始上架了
其中进去第一个界面需要提供屏幕截屏,需要提供很多ios设备的截屏,你可以使用香蕉云编来合成这些截屏。
https://www.yunedit.com/jietu
然后在后面,还需要上传ipa到构建版本,如下图所示:
这里win电脑安装不了xcode这些ide,因此使用香蕉云编来上传:
https://www.yunedit.com/ipasend
进入香蕉云编,提供ipa和平台账号这些信息,就可以上传了:
最近想发布ipa文件到appstore的时候,发现在app store填写资料的时候,需要xcode或其他mac电脑的软件来上传ipa文件,还需要多种尺寸的ios app的截屏。
这可是难为我们windows电脑的开发者了。
最后,我发现并不需要mac电脑也可以上架的,可以使用香蕉云编来实现。
下面是我上架appstore的经验分享:
先登录苹果开发者平台,点进去app store connect的app管理
新建一个app(假如你还没创建才需要创建),如下图,新建app的时候,套装ID这一项是最重要的,因为代表应用的ID,需要跟我们在hbuilderx填写的appId一模一样才行。
创建完后,你就可以见到app的列表界面有这个app了,如下:
点击app的名字,进去就开始上架了
其中进去第一个界面需要提供屏幕截屏,需要提供很多ios设备的截屏,你可以使用香蕉云编来合成这些截屏。
https://www.yunedit.com/jietu
然后在后面,还需要上传ipa到构建版本,如下图所示:
这里win电脑安装不了xcode这些ide,因此使用香蕉云编来上传:
https://www.yunedit.com/ipasend
进入香蕉云编,提供ipa和平台账号这些信息,就可以上传了:
收起阅读 »
基于vue3.5+tauri2.0接入deepseek-v3实战桌面端ai系统
deepseek-tauri2-chat:基于vue3.5+deepseek+tauri2+openai
从0-1搭建跨平台客户端流式输出AI对话系统。集成 Tauri2 对接 DeepSeek-V3 聊天大模型。采用无边框圆角阴影窗口、浅色+暗黑主题、代码高亮、会话本地存储等功能。
基于uniapp对接deepseek-v3跨端ai模板【h5+小程序+app端】
原创vue3.5+deepseek+arco-design网页web版流式输出对话模板
vue3+vite6+vant4实战mobile版流式ai聊天会话
使用技术
- 编码工具:vscode
- 前端框架:vite^6.3.5+vue^3.5.15+vue-router^4.5.1
- 大模型框架:DeepSeek-V3-0324 + OpenAI
- 跨平台框架:tauri^2.5.0
- 组件库:arco-design^2.57.0 (字节桌面端组件库)
- 状态管理:pinia^3.0.3
- 本地缓存:pinia-plugin-persistedstate^4.3.0
- markdown插件:markdown-it
项目结构目录
tauri2-vue3-winseek电脑端ai对话系统已经同步到我的原创作品集。
热文推荐
vue3-webseek网页版AI问答|Vite6+DeepSeek+Arco流式ai聊天打字效果
uniapp+vue3+deepseek+uv-ui跨端实战仿deepseek/豆包流式ai聊天对话助手。
Electron35-DeepSeek桌面端AI系统|vue3.5+electron+arco客户端ai模板
Electron32-Vue3OS桌面版os系统|vue3+electron+arco客户端OS管理模板
uniapp+vue3聊天室|uni-app+vite4+uv-ui跨端仿微信app聊天语音/朋友圈
Tauri2.0+Vite5聊天室|vue3+tauri2+element-plus仿微信|tauri聊天应用
tauri2.0-admin桌面端后台系统|Tauri2+Vite5+ElementPlus管理后台EXE程序
作者:xiaoyan2017
链接: https://www.cnblogs.com/xiaoyan2017/p/18932240
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
deepseek-tauri2-chat:基于vue3.5+deepseek+tauri2+openai
从0-1搭建跨平台客户端流式输出AI对话系统。集成 Tauri2 对接 DeepSeek-V3 聊天大模型。采用无边框圆角阴影窗口、浅色+暗黑主题、代码高亮、会话本地存储等功能。
基于uniapp对接deepseek-v3跨端ai模板【h5+小程序+app端】
原创vue3.5+deepseek+arco-design网页web版流式输出对话模板
vue3+vite6+vant4实战mobile版流式ai聊天会话
使用技术
- 编码工具:vscode
- 前端框架:vite^6.3.5+vue^3.5.15+vue-router^4.5.1
- 大模型框架:DeepSeek-V3-0324 + OpenAI
- 跨平台框架:tauri^2.5.0
- 组件库:arco-design^2.57.0 (字节桌面端组件库)
- 状态管理:pinia^3.0.3
- 本地缓存:pinia-plugin-persistedstate^4.3.0
- markdown插件:markdown-it
项目结构目录
tauri2-vue3-winseek电脑端ai对话系统已经同步到我的原创作品集。
热文推荐
vue3-webseek网页版AI问答|Vite6+DeepSeek+Arco流式ai聊天打字效果
uniapp+vue3+deepseek+uv-ui跨端实战仿deepseek/豆包流式ai聊天对话助手。
Electron35-DeepSeek桌面端AI系统|vue3.5+electron+arco客户端ai模板
Electron32-Vue3OS桌面版os系统|vue3+electron+arco客户端OS管理模板
uniapp+vue3聊天室|uni-app+vite4+uv-ui跨端仿微信app聊天语音/朋友圈
Tauri2.0+Vite5聊天室|vue3+tauri2+element-plus仿微信|tauri聊天应用
tauri2.0-admin桌面端后台系统|Tauri2+Vite5+ElementPlus管理后台EXE程序
作者:xiaoyan2017
链接: https://www.cnblogs.com/xiaoyan2017/p/18932240
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

别用HBuilder X
最垃圾的软件没有之一,国产垃圾乐色软件运行不了你妈啊傻逼软件最恶心人了开发这个软件的程序员就是家里死完了
最垃圾的软件没有之一,国产垃圾乐色软件运行不了你妈啊傻逼软件最恶心人了开发这个软件的程序员就是家里死完了

如何判断当前行是否保存了代码?
要判断当前行是否保存了代码,可从以下几个维度进行分析,具体方法取决于你所处的场景(如文本编辑器、代码编辑器、文档等),以下是通用判断思路:
一、从内容特征判断
语法结构识别
代码通常包含特定编程语言的语法元素,例如:
编程语言关键词(如 Python 的def、for、if;Java 的public、class、static)。
符号与格式:括号()、花括号{}、方括号[]、分号;、冒号:、运算符+、=、==等。
函数 / 方法调用(如print()、list.append())、变量定义(如int x = 5;)、代码块缩进。
示例:
python
运行
def calculate_sum(a, b):
return a + b
明显包含 Python 函数定义的语法特征,属于代码。
注释与代码标识
代码中常出现注释符号(如//、#、/ /),或被特定标记包裹(如 Markdown 中的代码块符号 ```)。
示例:
这是一行Python注释
// Java代码注释
二、从上下文场景判断
所在平台或工具
若在代码编辑器(如 VS Code、PyCharm)、IDE 或编程相关文档中,当前行更可能是代码。
若在普通文本编辑器、Word 文档或市场分析报告中(如前序对话中的大蒜价格数据),则更可能是纯文本。
前后文关联
查看当前行的上下文:
若前后文有代码块、编程术语(如 “函数”“变量”“循环”),则当前行可能是代码的一部分。
若前后文为自然语言描述(如市场行情、操作步骤),则更可能是普通文本。
三、特殊场景的判断技巧
Markdown 或文档中的代码块
若当前行被 ``或
包裹(如代码块标记),则属于代码。
示例:
java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
纯文本中的代码片段
即使没有标记,若内容符合编程语言语法(如一行 SQL 语句、HTML 标签),也属于代码。
示例:
SELECT * FROM users WHERE age > 18;(SQL 代码)
<div class="container">内容</div>(HTML 代码)
四、总结:判断流程
看内容:是否包含编程语言关键词、符号、语法结构。
看标记:是否被代码块符号包裹,或有注释符号。
看场景:是否在编程相关工具或上下文中。
若满足以上任意一点,当前行更可能是代码;若内容为自然语言、数据列表或非结构化文本,则不是代码。
https://q.yingjiesheng.com/forum/bk25786/tz1125678
https://q.yingjiesheng.com/forum/bk25786/tz1125679
https://q.yingjiesheng.com/forum/bk25786/tz1125680
https://q.yingjiesheng.com/forum/bk25786/tz1125681
https://q.yingjiesheng.com/forum/bk25786/tz1125682
https://q.yingjiesheng.com/forum/bk25786/tz1125683
https://q.yingjiesheng.com/forum/bk25786/tz1125684
https://q.yingjiesheng.com/forum/bk25786/tz1125685
https://q.yingjiesheng.com/forum/bk25786/tz1125686
https://q.yingjiesheng.com/forum/bk25786/tz1125688
https://q.yingjiesheng.com/forum/bk25786/tz1125690
https://q.yingjiesheng.com/forum/bk25786/tz1125691
https://q.yingjiesheng.com/forum/bk25786/tz1125692
https://q.yingjiesheng.com/forum/bk25786/tz1125693
https://q.yingjiesheng.com/forum/bk25786/tz1125694
https://q.yingjiesheng.com/forum/bk25786/tz1125695
https://q.yingjiesheng.com/forum/bk25786/tz1125696
https://q.yingjiesheng.com/forum/bk25786/tz1125697
https://q.yingjiesheng.com/forum/bk25786/tz1125698
https://q.yingjiesheng.com/forum/bk25786/tz1125699
https://q.yingjiesheng.com/forum/bk25786/tz1125700
https://q.yingjiesheng.com/forum/bk25786/tz1125701
https://q.yingjiesheng.com/forum/bk25786/tz1125702
https://q.yingjiesheng.com/forum/bk25786/tz1125703
https://q.yingjiesheng.com/forum/bk25786/tz1125704
https://q.yingjiesheng.com/forum/bk25786/tz1125705
https://q.yingjiesheng.com/forum/bk25786/tz1125706
https://q.yingjiesheng.com/forum/bk25786/tz1125707
https://q.yingjiesheng.com/forum/bk25786/tz1125708
https://q.yingjiesheng.com/forum/bk25786/tz1125709
https://q.yingjiesheng.com/forum/bk25786/tz1125710
https://q.yingjiesheng.com/forum/bk25786/tz1125711
https://q.yingjiesheng.com/forum/bk25786/tz1125712
https://q.yingjiesheng.com/forum/bk25786/tz1125713
https://q.yingjiesheng.com/forum/bk25786/tz1125714
https://q.yingjiesheng.com/forum/bk25786/tz1125715
https://q.yingjiesheng.com/forum/bk25786/tz1125716
https://q.yingjiesheng.com/forum/bk25786/tz1125717
https://q.yingjiesheng.com/forum/bk25786/tz1125718
https://q.yingjiesheng.com/forum/bk25786/tz1125719
https://q.yingjiesheng.com/forum/bk25786/tz1125720
https://q.yingjiesheng.com/forum/bk25786/tz1125721
https://q.yingjiesheng.com/forum/bk25786/tz1125722
https://q.yingjiesheng.com/forum/bk25786/tz1125723
https://q.yingjiesheng.com/forum/bk25786/tz1125724
https://q.yingjiesheng.com/forum/bk25786/tz1125725
https://q.yingjiesheng.com/forum/bk25786/tz1125726
https://q.yingjiesheng.com/forum/bk25786/tz1125727
https://q.yingjiesheng.com/forum/bk25786/tz1125728
https://q.yingjiesheng.com/forum/bk25786/tz1125729
https://q.yingjiesheng.com/forum/bk25786/tz1125730
https://q.yingjiesheng.com/forum/bk25786/tz1125731
https://q.yingjiesheng.com/forum/bk25786/tz1125732
https://q.yingjiesheng.com/forum/bk25786/tz1125733
https://q.yingjiesheng.com/forum/bk25786/tz1125734
https://q.yingjiesheng.com/forum/bk25786/tz1125735
https://q.yingjiesheng.com/forum/bk25786/tz1125736
https://q.yingjiesheng.com/forum/bk25786/tz1125737
https://q.yingjiesheng.com/forum/bk25786/tz1125738
https://q.yingjiesheng.com/forum/bk25786/tz1125739
https://q.yingjiesheng.com/forum/bk25786/tz1125740
https://q.yingjiesheng.com/forum/bk25786/tz1125741
https://q.yingjiesheng.com/forum/bk25786/tz1125742
https://q.yingjiesheng.com/forum/bk25786/tz1125743
https://q.yingjiesheng.com/forum/bk25786/tz1125744
https://q.yingjiesheng.com/forum/bk25786/tz1125745
https://q.yingjiesheng.com/forum/bk25786/tz1125746
https://q.yingjiesheng.com/forum/bk25786/tz1125747
https://q.yingjiesheng.com/forum/bk25786/tz1125748
https://q.yingjiesheng.com/forum/bk25786/tz1125749
https://q.yingjiesheng.com/forum/bk25786/tz1125750
https://q.yingjiesheng.com/forum/bk25786/tz1125751
https://q.yingjiesheng.com/forum/bk25786/tz1125752
https://q.yingjiesheng.com/forum/bk25786/tz1125753
https://q.yingjiesheng.com/forum/bk25786/tz1125754
https://q.yingjiesheng.com/forum/bk25786/tz1125755
https://q.yingjiesheng.com/forum/bk25786/tz1125756
https://q.yingjiesheng.com/forum/bk25786/tz1125757
https://q.yingjiesheng.com/forum/bk25786/tz1125758
https://q.yingjiesheng.com/forum/bk25786/tz1125759
https://q.yingjiesheng.com/forum/bk25786/tz1125760
https://q.yingjiesheng.com/forum/bk25786/tz1125761
https://q.yingjiesheng.com/forum/bk25786/tz1125762
https://q.yingjiesheng.com/forum/bk25786/tz1125763
https://q.yingjiesheng.com/forum/bk25786/tz1125764
https://q.yingjiesheng.com/forum/bk25786/tz1125767
https://q.yingjiesheng.com/forum/bk25786/tz1125768
https://q.yingjiesheng.com/forum/bk25786/tz1125769
https://q.yingjiesheng.com/forum/bk25786/tz1125770
https://q.yingjiesheng.com/forum/bk25786/tz1125771
https://q.yingjiesheng.com/forum/bk25786/tz1125772
https://q.yingjiesheng.com/forum/bk25786/tz1125773
https://q.yingjiesheng.com/forum/bk25786/tz1125774
https://q.yingjiesheng.com/forum/bk25786/tz1125775
https://q.yingjiesheng.com/forum/bk25786/tz1125776
https://q.yingjiesheng.com/forum/bk25786/tz1125777
https://q.yingjiesheng.com/forum/bk25786/tz1125778
https://q.yingjiesheng.com/forum/bk25786/tz1125779
https://q.yingjiesheng.com/forum/bk25786/tz1125780
https://q.yingjiesheng.com/forum/bk25786/tz1125781
https://q.yingjiesheng.com/forum/bk25786/tz1125782
https://q.yingjiesheng.com/forum/bk25786/tz1125783
https://q.yingjiesheng.com/forum/bk25786/tz1125784
https://q.yingjiesheng.com/forum/bk25786/tz1125785
https://q.yingjiesheng.com/forum/bk25786/tz1125786
https://q.yingjiesheng.com/forum/bk25786/tz1125787
https://q.yingjiesheng.com/forum/bk25786/tz1125788
https://q.yingjiesheng.com/forum/bk25786/tz1125789
https://q.yingjiesheng.com/forum/bk25786/tz1125790
https://q.yingjiesheng.com/forum/bk25786/tz1125791
https://q.yingjiesheng.com/forum/bk25786/tz1125792
https://q.yingjiesheng.com/forum/bk25786/tz1125793
https://q.yingjiesheng.com/forum/bk25786/tz1125794
https://q.yingjiesheng.com/forum/bk25786/tz1125795
https://q.yingjiesheng.com/forum/bk25786/tz1125796
https://q.yingjiesheng.com/forum/bk25786/tz1125797
https://q.yingjiesheng.com/forum/bk25786/tz1125798
https://q.yingjiesheng.com/forum/bk25786/tz1125799
https://q.yingjiesheng.com/forum/bk25786/tz1125800
https://q.yingjiesheng.com/forum/bk25786/tz1125801
https://q.yingjiesheng.com/forum/bk25786/tz1125802
https://q.yingjiesheng.com/forum/bk25786/tz1125803
https://q.yingjiesheng.com/forum/bk25786/tz1125805
https://q.yingjiesheng.com/forum/bk25786/tz1125806
https://q.yingjiesheng.com/forum/bk25786/tz1125807
https://q.yingjiesheng.com/forum/bk25786/tz1125808
https://q.yingjiesheng.com/forum/bk25786/tz1125809
https://q.yingjiesheng.com/forum/bk25786/tz1125810
https://q.yingjiesheng.com/forum/bk25786/tz1125811
https://q.yingjiesheng.com/forum/bk25786/tz1125812
https://q.yingjiesheng.com/forum/bk25786/tz1125813
https://q.yingjiesheng.com/forum/bk25786/tz1125814
https://q.yingjiesheng.com/forum/bk25786/tz1125815
https://q.yingjiesheng.com/forum/bk25786/tz1125816
https://q.yingjiesheng.com/forum/bk25786/tz1125817
https://q.yingjiesheng.com/forum/bk25786/tz1125818
https://q.yingjiesheng.com/forum/bk25786/tz1125819
https://q.yingjiesheng.com/forum/bk25786/tz1125820
https://q.yingjiesheng.com/forum/bk25786/tz1125821
https://q.yingjiesheng.com/forum/bk25786/tz1125822
https://q.yingjiesheng.com/forum/bk25786/tz1125823
https://q.yingjiesheng.com/forum/bk25786/tz1125824
https://q.yingjiesheng.com/forum/bk25786/tz1125825
https://q.yingjiesheng.com/forum/bk25786/tz1125826
https://q.yingjiesheng.com/forum/bk25786/tz1125827
https://q.yingjiesheng.com/forum/bk25786/tz1125828
https://q.yingjiesheng.com/forum/bk25786/tz1125829
https://q.yingjiesheng.com/forum/bk25786/tz1125830
https://q.yingjiesheng.com/forum/bk25786/tz1125831
https://q.yingjiesheng.com/forum/bk25786/tz1125832
https://q.yingjiesheng.com/forum/bk25786/tz1125833
https://q.yingjiesheng.com/forum/bk25786/tz1125834
https://q.yingjiesheng.com/forum/bk25786/tz1125835
https://q.yingjiesheng.com/forum/bk25786/tz1125836
https://q.yingjiesheng.com/forum/bk25786/tz1125837
https://q.yingjiesheng.com/forum/bk25786/tz1125838
https://q.yingjiesheng.com/forum/bk25786/tz1125839
https://q.yingjiesheng.com/forum/bk25786/tz1125840
https://q.yingjiesheng.com/forum/bk25786/tz1125841
https://q.yingjiesheng.com/forum/bk25786/tz1125842
https://q.yingjiesheng.com/forum/bk25786/tz1125843
https://q.yingjiesheng.com/forum/bk25786/tz1125844
https://q.yingjiesheng.com/forum/bk25786/tz1125845
https://q.yingjiesheng.com/forum/bk25786/tz1125846
https://q.yingjiesheng.com/forum/bk25786/tz1125847
https://q.yingjiesheng.com/forum/bk25786/tz1125848
https://q.yingjiesheng.com/forum/bk25786/tz1125849
https://q.yingjiesheng.com/forum/bk25786/tz1125850
https://q.yingjiesheng.com/forum/bk25786/tz1125851
https://q.yingjiesheng.com/forum/bk25786/tz1125852
https://q.yingjiesheng.com/forum/bk25786/tz1125853
https://q.yingjiesheng.com/forum/bk25786/tz1125854
https://q.yingjiesheng.com/forum/bk25786/tz1125855
https://q.yingjiesheng.com/forum/bk25786/tz1125856
https://q.yingjiesheng.com/forum/bk25786/tz1125857
https://q.yingjiesheng.com/forum/bk25786/tz1125858
https://q.yingjiesheng.com/forum/bk25786/tz1125859
https://q.yingjiesheng.com/forum/bk25786/tz1125860
https://q.yingjiesheng.com/forum/bk25786/tz1125861
https://q.yingjiesheng.com/forum/bk25786/tz1125862
https://q.yingjiesheng.com/forum/bk25786/tz1125863
https://q.yingjiesheng.com/forum/bk25786/tz1125864
https://q.yingjiesheng.com/forum/bk25786/tz1125865
https://q.yingjiesheng.com/forum/bk25786/tz1125866
https://q.yingjiesheng.com/forum/bk25786/tz1125868
https://q.yingjiesheng.com/forum/bk25786/tz1125869
https://q.yingjiesheng.com/forum/bk25786/tz1125871
https://q.yingjiesheng.com/forum/bk25786/tz1125872
https://q.yingjiesheng.com/forum/bk25786/tz1125873
https://q.yingjiesheng.com/forum/bk25786/tz1125874
要判断当前行是否保存了代码,可从以下几个维度进行分析,具体方法取决于你所处的场景(如文本编辑器、代码编辑器、文档等),以下是通用判断思路:
一、从内容特征判断
语法结构识别
代码通常包含特定编程语言的语法元素,例如:
编程语言关键词(如 Python 的def、for、if;Java 的public、class、static)。
符号与格式:括号()、花括号{}、方括号[]、分号;、冒号:、运算符+、=、==等。
函数 / 方法调用(如print()、list.append())、变量定义(如int x = 5;)、代码块缩进。
示例:
python
运行
def calculate_sum(a, b):
return a + b
明显包含 Python 函数定义的语法特征,属于代码。
注释与代码标识
代码中常出现注释符号(如//、#、/ /),或被特定标记包裹(如 Markdown 中的代码块符号 ```)。
示例:
这是一行Python注释
// Java代码注释
二、从上下文场景判断
所在平台或工具
若在代码编辑器(如 VS Code、PyCharm)、IDE 或编程相关文档中,当前行更可能是代码。
若在普通文本编辑器、Word 文档或市场分析报告中(如前序对话中的大蒜价格数据),则更可能是纯文本。
前后文关联
查看当前行的上下文:
若前后文有代码块、编程术语(如 “函数”“变量”“循环”),则当前行可能是代码的一部分。
若前后文为自然语言描述(如市场行情、操作步骤),则更可能是普通文本。
三、特殊场景的判断技巧
Markdown 或文档中的代码块
若当前行被 ``或
包裹(如代码块标记),则属于代码。
示例:
java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
纯文本中的代码片段
即使没有标记,若内容符合编程语言语法(如一行 SQL 语句、HTML 标签),也属于代码。
示例:
SELECT * FROM users WHERE age > 18;(SQL 代码)
<div class="container">内容</div>(HTML 代码)
四、总结:判断流程
看内容:是否包含编程语言关键词、符号、语法结构。
看标记:是否被代码块符号包裹,或有注释符号。
看场景:是否在编程相关工具或上下文中。
若满足以上任意一点,当前行更可能是代码;若内容为自然语言、数据列表或非结构化文本,则不是代码。
https://q.yingjiesheng.com/forum/bk25786/tz1125678
https://q.yingjiesheng.com/forum/bk25786/tz1125679
https://q.yingjiesheng.com/forum/bk25786/tz1125680
https://q.yingjiesheng.com/forum/bk25786/tz1125681
https://q.yingjiesheng.com/forum/bk25786/tz1125682
https://q.yingjiesheng.com/forum/bk25786/tz1125683
https://q.yingjiesheng.com/forum/bk25786/tz1125684
https://q.yingjiesheng.com/forum/bk25786/tz1125685
https://q.yingjiesheng.com/forum/bk25786/tz1125686
https://q.yingjiesheng.com/forum/bk25786/tz1125688
https://q.yingjiesheng.com/forum/bk25786/tz1125690
https://q.yingjiesheng.com/forum/bk25786/tz1125691
https://q.yingjiesheng.com/forum/bk25786/tz1125692
https://q.yingjiesheng.com/forum/bk25786/tz1125693
https://q.yingjiesheng.com/forum/bk25786/tz1125694
https://q.yingjiesheng.com/forum/bk25786/tz1125695
https://q.yingjiesheng.com/forum/bk25786/tz1125696
https://q.yingjiesheng.com/forum/bk25786/tz1125697
https://q.yingjiesheng.com/forum/bk25786/tz1125698
https://q.yingjiesheng.com/forum/bk25786/tz1125699
https://q.yingjiesheng.com/forum/bk25786/tz1125700
https://q.yingjiesheng.com/forum/bk25786/tz1125701
https://q.yingjiesheng.com/forum/bk25786/tz1125702
https://q.yingjiesheng.com/forum/bk25786/tz1125703
https://q.yingjiesheng.com/forum/bk25786/tz1125704
https://q.yingjiesheng.com/forum/bk25786/tz1125705
https://q.yingjiesheng.com/forum/bk25786/tz1125706
https://q.yingjiesheng.com/forum/bk25786/tz1125707
https://q.yingjiesheng.com/forum/bk25786/tz1125708
https://q.yingjiesheng.com/forum/bk25786/tz1125709
https://q.yingjiesheng.com/forum/bk25786/tz1125710
https://q.yingjiesheng.com/forum/bk25786/tz1125711
https://q.yingjiesheng.com/forum/bk25786/tz1125712
https://q.yingjiesheng.com/forum/bk25786/tz1125713
https://q.yingjiesheng.com/forum/bk25786/tz1125714
https://q.yingjiesheng.com/forum/bk25786/tz1125715
https://q.yingjiesheng.com/forum/bk25786/tz1125716
https://q.yingjiesheng.com/forum/bk25786/tz1125717
https://q.yingjiesheng.com/forum/bk25786/tz1125718
https://q.yingjiesheng.com/forum/bk25786/tz1125719
https://q.yingjiesheng.com/forum/bk25786/tz1125720
https://q.yingjiesheng.com/forum/bk25786/tz1125721
https://q.yingjiesheng.com/forum/bk25786/tz1125722
https://q.yingjiesheng.com/forum/bk25786/tz1125723
https://q.yingjiesheng.com/forum/bk25786/tz1125724
https://q.yingjiesheng.com/forum/bk25786/tz1125725
https://q.yingjiesheng.com/forum/bk25786/tz1125726
https://q.yingjiesheng.com/forum/bk25786/tz1125727
https://q.yingjiesheng.com/forum/bk25786/tz1125728
https://q.yingjiesheng.com/forum/bk25786/tz1125729
https://q.yingjiesheng.com/forum/bk25786/tz1125730
https://q.yingjiesheng.com/forum/bk25786/tz1125731
https://q.yingjiesheng.com/forum/bk25786/tz1125732
https://q.yingjiesheng.com/forum/bk25786/tz1125733
https://q.yingjiesheng.com/forum/bk25786/tz1125734
https://q.yingjiesheng.com/forum/bk25786/tz1125735
https://q.yingjiesheng.com/forum/bk25786/tz1125736
https://q.yingjiesheng.com/forum/bk25786/tz1125737
https://q.yingjiesheng.com/forum/bk25786/tz1125738
https://q.yingjiesheng.com/forum/bk25786/tz1125739
https://q.yingjiesheng.com/forum/bk25786/tz1125740
https://q.yingjiesheng.com/forum/bk25786/tz1125741
https://q.yingjiesheng.com/forum/bk25786/tz1125742
https://q.yingjiesheng.com/forum/bk25786/tz1125743
https://q.yingjiesheng.com/forum/bk25786/tz1125744
https://q.yingjiesheng.com/forum/bk25786/tz1125745
https://q.yingjiesheng.com/forum/bk25786/tz1125746
https://q.yingjiesheng.com/forum/bk25786/tz1125747
https://q.yingjiesheng.com/forum/bk25786/tz1125748
https://q.yingjiesheng.com/forum/bk25786/tz1125749
https://q.yingjiesheng.com/forum/bk25786/tz1125750
https://q.yingjiesheng.com/forum/bk25786/tz1125751
https://q.yingjiesheng.com/forum/bk25786/tz1125752
https://q.yingjiesheng.com/forum/bk25786/tz1125753
https://q.yingjiesheng.com/forum/bk25786/tz1125754
https://q.yingjiesheng.com/forum/bk25786/tz1125755
https://q.yingjiesheng.com/forum/bk25786/tz1125756
https://q.yingjiesheng.com/forum/bk25786/tz1125757
https://q.yingjiesheng.com/forum/bk25786/tz1125758
https://q.yingjiesheng.com/forum/bk25786/tz1125759
https://q.yingjiesheng.com/forum/bk25786/tz1125760
https://q.yingjiesheng.com/forum/bk25786/tz1125761
https://q.yingjiesheng.com/forum/bk25786/tz1125762
https://q.yingjiesheng.com/forum/bk25786/tz1125763
https://q.yingjiesheng.com/forum/bk25786/tz1125764
https://q.yingjiesheng.com/forum/bk25786/tz1125767
https://q.yingjiesheng.com/forum/bk25786/tz1125768
https://q.yingjiesheng.com/forum/bk25786/tz1125769
https://q.yingjiesheng.com/forum/bk25786/tz1125770
https://q.yingjiesheng.com/forum/bk25786/tz1125771
https://q.yingjiesheng.com/forum/bk25786/tz1125772
https://q.yingjiesheng.com/forum/bk25786/tz1125773
https://q.yingjiesheng.com/forum/bk25786/tz1125774
https://q.yingjiesheng.com/forum/bk25786/tz1125775
https://q.yingjiesheng.com/forum/bk25786/tz1125776
https://q.yingjiesheng.com/forum/bk25786/tz1125777
https://q.yingjiesheng.com/forum/bk25786/tz1125778
https://q.yingjiesheng.com/forum/bk25786/tz1125779
https://q.yingjiesheng.com/forum/bk25786/tz1125780
https://q.yingjiesheng.com/forum/bk25786/tz1125781
https://q.yingjiesheng.com/forum/bk25786/tz1125782
https://q.yingjiesheng.com/forum/bk25786/tz1125783
https://q.yingjiesheng.com/forum/bk25786/tz1125784
https://q.yingjiesheng.com/forum/bk25786/tz1125785
https://q.yingjiesheng.com/forum/bk25786/tz1125786
https://q.yingjiesheng.com/forum/bk25786/tz1125787
https://q.yingjiesheng.com/forum/bk25786/tz1125788
https://q.yingjiesheng.com/forum/bk25786/tz1125789
https://q.yingjiesheng.com/forum/bk25786/tz1125790
https://q.yingjiesheng.com/forum/bk25786/tz1125791
https://q.yingjiesheng.com/forum/bk25786/tz1125792
https://q.yingjiesheng.com/forum/bk25786/tz1125793
https://q.yingjiesheng.com/forum/bk25786/tz1125794
https://q.yingjiesheng.com/forum/bk25786/tz1125795
https://q.yingjiesheng.com/forum/bk25786/tz1125796
https://q.yingjiesheng.com/forum/bk25786/tz1125797
https://q.yingjiesheng.com/forum/bk25786/tz1125798
https://q.yingjiesheng.com/forum/bk25786/tz1125799
https://q.yingjiesheng.com/forum/bk25786/tz1125800
https://q.yingjiesheng.com/forum/bk25786/tz1125801
https://q.yingjiesheng.com/forum/bk25786/tz1125802
https://q.yingjiesheng.com/forum/bk25786/tz1125803
https://q.yingjiesheng.com/forum/bk25786/tz1125805
https://q.yingjiesheng.com/forum/bk25786/tz1125806
https://q.yingjiesheng.com/forum/bk25786/tz1125807
https://q.yingjiesheng.com/forum/bk25786/tz1125808
https://q.yingjiesheng.com/forum/bk25786/tz1125809
https://q.yingjiesheng.com/forum/bk25786/tz1125810
https://q.yingjiesheng.com/forum/bk25786/tz1125811
https://q.yingjiesheng.com/forum/bk25786/tz1125812
https://q.yingjiesheng.com/forum/bk25786/tz1125813
https://q.yingjiesheng.com/forum/bk25786/tz1125814
https://q.yingjiesheng.com/forum/bk25786/tz1125815
https://q.yingjiesheng.com/forum/bk25786/tz1125816
https://q.yingjiesheng.com/forum/bk25786/tz1125817
https://q.yingjiesheng.com/forum/bk25786/tz1125818
https://q.yingjiesheng.com/forum/bk25786/tz1125819
https://q.yingjiesheng.com/forum/bk25786/tz1125820
https://q.yingjiesheng.com/forum/bk25786/tz1125821
https://q.yingjiesheng.com/forum/bk25786/tz1125822
https://q.yingjiesheng.com/forum/bk25786/tz1125823
https://q.yingjiesheng.com/forum/bk25786/tz1125824
https://q.yingjiesheng.com/forum/bk25786/tz1125825
https://q.yingjiesheng.com/forum/bk25786/tz1125826
https://q.yingjiesheng.com/forum/bk25786/tz1125827
https://q.yingjiesheng.com/forum/bk25786/tz1125828
https://q.yingjiesheng.com/forum/bk25786/tz1125829
https://q.yingjiesheng.com/forum/bk25786/tz1125830
https://q.yingjiesheng.com/forum/bk25786/tz1125831
https://q.yingjiesheng.com/forum/bk25786/tz1125832
https://q.yingjiesheng.com/forum/bk25786/tz1125833
https://q.yingjiesheng.com/forum/bk25786/tz1125834
https://q.yingjiesheng.com/forum/bk25786/tz1125835
https://q.yingjiesheng.com/forum/bk25786/tz1125836
https://q.yingjiesheng.com/forum/bk25786/tz1125837
https://q.yingjiesheng.com/forum/bk25786/tz1125838
https://q.yingjiesheng.com/forum/bk25786/tz1125839
https://q.yingjiesheng.com/forum/bk25786/tz1125840
https://q.yingjiesheng.com/forum/bk25786/tz1125841
https://q.yingjiesheng.com/forum/bk25786/tz1125842
https://q.yingjiesheng.com/forum/bk25786/tz1125843
https://q.yingjiesheng.com/forum/bk25786/tz1125844
https://q.yingjiesheng.com/forum/bk25786/tz1125845
https://q.yingjiesheng.com/forum/bk25786/tz1125846
https://q.yingjiesheng.com/forum/bk25786/tz1125847
https://q.yingjiesheng.com/forum/bk25786/tz1125848
https://q.yingjiesheng.com/forum/bk25786/tz1125849
https://q.yingjiesheng.com/forum/bk25786/tz1125850
https://q.yingjiesheng.com/forum/bk25786/tz1125851
https://q.yingjiesheng.com/forum/bk25786/tz1125852
https://q.yingjiesheng.com/forum/bk25786/tz1125853
https://q.yingjiesheng.com/forum/bk25786/tz1125854
https://q.yingjiesheng.com/forum/bk25786/tz1125855
https://q.yingjiesheng.com/forum/bk25786/tz1125856
https://q.yingjiesheng.com/forum/bk25786/tz1125857
https://q.yingjiesheng.com/forum/bk25786/tz1125858
https://q.yingjiesheng.com/forum/bk25786/tz1125859
https://q.yingjiesheng.com/forum/bk25786/tz1125860
https://q.yingjiesheng.com/forum/bk25786/tz1125861
https://q.yingjiesheng.com/forum/bk25786/tz1125862
https://q.yingjiesheng.com/forum/bk25786/tz1125863
https://q.yingjiesheng.com/forum/bk25786/tz1125864
https://q.yingjiesheng.com/forum/bk25786/tz1125865
https://q.yingjiesheng.com/forum/bk25786/tz1125866
https://q.yingjiesheng.com/forum/bk25786/tz1125868
https://q.yingjiesheng.com/forum/bk25786/tz1125869
https://q.yingjiesheng.com/forum/bk25786/tz1125871
https://q.yingjiesheng.com/forum/bk25786/tz1125872
https://q.yingjiesheng.com/forum/bk25786/tz1125873
https://q.yingjiesheng.com/forum/bk25786/tz1125874