Skip to content

Commit

Permalink
test password
Browse files Browse the repository at this point in the history
  • Loading branch information
RockyQLuo committed Oct 17, 2024
1 parent 11a8a9d commit f422d4c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
33 changes: 33 additions & 0 deletions _posts/语言类/2024-10-15-tools.md
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)`描整个字符串并返回第一个成功的匹配。
11 changes: 11 additions & 0 deletions _posts/阅读/2024-10-17-paper.md
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/
---
<scriptvar password = prompt("请输入密码:"); if (password !== "xiaokai") {document.body.innerHTML = "访问被拒绝。"; } </script>

111

0 comments on commit f422d4c

Please sign in to comment.