generated from cotes2020/chirpy-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: post | ||
title: 《各类脚本工具语言记录》 | ||
date: 2024-10-15 15:17 +0800 | ||
categories: [tools, 脚本语言] | ||
tags: [] | ||
img_path: /assets/img/image/ | ||
--- | ||
|
||
## tcl | ||
[vivado的tcl用法](https://blog.csdn.net/FPGADesigner/article/details/75304641) | ||
- 变量置换:`set y [expr $x+100]` | ||
- 赋值:`set b ${a.1}` | ||
- List:`list 1 2 {3 4}` | ||
- | ||
|
||
|
||
## Makefile | ||
1. 关于部分makefile的路径管理 | ||
- <font color="#d99694">\$(abspath ./sim_c/include)</font> :`abspath`函数会将给定的相对路径转换为绝对路径。在这个例子中,`./sim_c/include`是一个相对路径,`$(abspath ./sim_c/include)`会将其转换为绝对路径 | ||
- <font color="#d99694">\$(addprefix -I, $(INC_PATH))</font>:函数会将指定的前缀`-I`添加到`INC_PATH`变量中的每个路径前面 | ||
|
||
## python | ||
官方帮助: | ||
https://docs.python.org/zh-cn/3/ | ||
|
||
### python正则表达匹配规则 | ||
* `r'/\*.*$ r'^.*\*/'` | ||
* `^`表示行的开始, | ||
* `.*`表示任何字符(除了换行符)0次或多次 | ||
* `re.sub('//.*$','',lines[i])` 替换 | ||
* `re.findall(r'/\*',lines[i])` 找到所有匹配模式,返回元组列表 | ||
* `re.search(pattern, string, flags)`描整个字符串并返回第一个成功的匹配。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
layout: post | ||
title: 《paper阅读记录》 | ||
date: 2024-10-17 13:18 +0800 | ||
categories: [读书笔记, paper] | ||
tags: [] | ||
img_path: /assets/img/image/ | ||
--- | ||
<script> var password = prompt("请输入密码:"); if (password !== "xiaokai") {document.body.innerHTML = "访问被拒绝。"; } </script> | ||
|
||
111 |