diff --git a/_posts/.obsidian/.obsidian/app.json b/_posts/.obsidian/.obsidian/app.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/_posts/.obsidian/.obsidian/app.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/_posts/.obsidian/.obsidian/appearance.json b/_posts/.obsidian/.obsidian/appearance.json new file mode 100644 index 0000000..849d0ae --- /dev/null +++ b/_posts/.obsidian/.obsidian/appearance.json @@ -0,0 +1,4 @@ +{ + "theme": "system", + "accentColor": "#5c9ef5" +} \ No newline at end of file diff --git a/_posts/.obsidian/.obsidian/core-plugins-migration.json b/_posts/.obsidian/.obsidian/core-plugins-migration.json new file mode 100644 index 0000000..436f43c --- /dev/null +++ b/_posts/.obsidian/.obsidian/core-plugins-migration.json @@ -0,0 +1,30 @@ +{ + "file-explorer": true, + "global-search": true, + "switcher": true, + "graph": true, + "backlink": true, + "canvas": true, + "outgoing-link": true, + "tag-pane": true, + "properties": false, + "page-preview": true, + "daily-notes": true, + "templates": true, + "note-composer": true, + "command-palette": true, + "slash-command": false, + "editor-status": true, + "bookmarks": true, + "markdown-importer": false, + "zk-prefixer": false, + "random-note": false, + "outline": true, + "word-count": true, + "slides": false, + "audio-recorder": false, + "workspaces": false, + "file-recovery": true, + "publish": false, + "sync": false +} \ No newline at end of file diff --git a/_posts/.obsidian/.obsidian/core-plugins.json b/_posts/.obsidian/.obsidian/core-plugins.json new file mode 100644 index 0000000..9405bfd --- /dev/null +++ b/_posts/.obsidian/.obsidian/core-plugins.json @@ -0,0 +1,20 @@ +[ + "file-explorer", + "global-search", + "switcher", + "graph", + "backlink", + "canvas", + "outgoing-link", + "tag-pane", + "page-preview", + "daily-notes", + "templates", + "note-composer", + "command-palette", + "editor-status", + "bookmarks", + "outline", + "word-count", + "file-recovery" +] \ No newline at end of file diff --git a/_posts/.obsidian/.obsidian/workspace.json b/_posts/.obsidian/.obsidian/workspace.json new file mode 100644 index 0000000..1469fd5 --- /dev/null +++ b/_posts/.obsidian/.obsidian/workspace.json @@ -0,0 +1,145 @@ +{ + "main": { + "id": "6e4980b42aa86c01", + "type": "split", + "children": [ + { + "id": "039258f388ab1043", + "type": "tabs", + "children": [ + { + "id": "7d4d4c0ca4734b14", + "type": "leaf", + "state": { + "type": "empty", + "state": {} + } + } + ] + } + ], + "direction": "vertical" + }, + "left": { + "id": "843f43cc8232d888", + "type": "split", + "children": [ + { + "id": "698d60a1e68374d1", + "type": "tabs", + "children": [ + { + "id": "5896be9c0dc30b6d", + "type": "leaf", + "state": { + "type": "file-explorer", + "state": { + "sortOrder": "alphabetical" + } + } + }, + { + "id": "f4a8403ab54b1465", + "type": "leaf", + "state": { + "type": "search", + "state": { + "query": "", + "matchingCase": false, + "explainSearch": false, + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical" + } + } + }, + { + "id": "d2d44d923562e796", + "type": "leaf", + "state": { + "type": "bookmarks", + "state": {} + } + } + ] + } + ], + "direction": "horizontal", + "width": 300 + }, + "right": { + "id": "518cbb2f83798166", + "type": "split", + "children": [ + { + "id": "73af8a78e9c33a39", + "type": "tabs", + "children": [ + { + "id": "aeac7a1a7732e5eb", + "type": "leaf", + "state": { + "type": "backlink", + "state": { + "collapseAll": false, + "extraContext": false, + "sortOrder": "alphabetical", + "showSearch": false, + "searchQuery": "", + "backlinkCollapsed": false, + "unlinkedCollapsed": true + } + } + }, + { + "id": "53a36f458b24bbd3", + "type": "leaf", + "state": { + "type": "outgoing-link", + "state": { + "linksCollapsed": false, + "unlinkedCollapsed": true + } + } + }, + { + "id": "1acea8eb533f1190", + "type": "leaf", + "state": { + "type": "tag", + "state": { + "sortOrder": "frequency", + "useHierarchy": true + } + } + }, + { + "id": "ffd69ba34d042655", + "type": "leaf", + "state": { + "type": "outline", + "state": {} + } + } + ] + } + ], + "direction": "horizontal", + "width": 300, + "collapsed": true + }, + "left-ribbon": { + "hiddenItems": { + "switcher:打开快速切换": false, + "graph:查看关系图谱": false, + "canvas:新建白板": false, + "daily-notes:打开/创建今天的日记": false, + "templates:插入模板": false, + "command-palette:打开命令面板": false + } + }, + "active": "7d4d4c0ca4734b14", + "lastOpenFiles": [ + "未命名.md" + ] +} \ No newline at end of file diff --git a/_posts/.obsidian/workspace.json b/_posts/.obsidian/workspace.json index d4cab1c..b7a9372 100644 --- a/_posts/.obsidian/workspace.json +++ b/_posts/.obsidian/workspace.json @@ -13,24 +13,36 @@ "state": { "type": "outline", "state": { - "file": "2021-11-14-Windows权限.md" + "file": "2024-06-09-Google Search.md" } } }, { - "id": "1bcc68b97e5c20f9", + "id": "2ac9d46f55ce48fe", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "2021-11-14-Windows权限.md", + "file": "2024-06-09-Google Search.md", + "mode": "source", + "source": false + } + } + }, + { + "id": "3e876f99bd6d2946", + "type": "leaf", + "state": { + "type": "markdown", + "state": { + "file": "2024-06-09-Google Search.md", "mode": "source", "source": false } } } ], - "currentTab": 1 + "currentTab": 2 } ], "direction": "vertical" @@ -59,7 +71,7 @@ "state": { "type": "search", "state": { - "query": "file:win", + "query": "", "matchingCase": false, "explainSearch": false, "collapseAll": false, @@ -76,13 +88,11 @@ "state": {} } } - ], - "currentTab": 1 + ] } ], "direction": "horizontal", - "width": 265.5, - "collapsed": true + "width": 265.5 }, "right": { "id": "c2ed0bcd55eeb68f", @@ -98,7 +108,7 @@ "state": { "type": "backlink", "state": { - "file": "2021-11-14-Windows权限.md", + "file": "2024-06-09-Google Search.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -115,7 +125,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "2021-11-14-Windows权限.md", + "file": "2024-06-09-Google Search.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -150,33 +160,39 @@ "state": { "type": "outline", "state": { - "file": "2021-11-14-Windows权限.md" + "file": "2024-06-09-Google Search.md" } } } - ] + ], + "currentTab": 4 } ], "direction": "horizontal", - "width": 300, - "collapsed": true + "width": 300 }, "left-ribbon": { "hiddenItems": { - "switcher:Open quick switcher": false, - "graph:Open graph view": false, - "canvas:Create new canvas": false, - "daily-notes:Open today's daily note": false, - "templates:Insert template": false, - "command-palette:Open command palette": false + "switcher:打开快速切换": false, + "graph:查看关系图谱": false, + "canvas:新建白板": false, + "daily-notes:打开/创建今天的日记": false, + "templates:插入模板": false, + "command-palette:打开命令面板": false } }, - "active": "1bcc68b97e5c20f9", + "active": "3e876f99bd6d2946", "lastOpenFiles": [ + "2024-08-22-Google Chrome.md", + "2024-06-09-Google Search.md", + "2023-11-29-Windows定制.md", + "2024-08-15-Python最佳实践.md", + "2024-08-04-SpringBoot单元测试.md", + "2021-11-14-Windows权限.md", + "2023-01-12-IDEA使用.md", "2023-01-12-JavaScript-ES6.md", "2023-01-26-python基础.md", "2024-03-26-Python实用工具库.md", - "2024-08-15-Python最佳实践.md", "2022-05-23-PythonSocket.md", "2022-04-25-Python之旅上.md", "2021-07-01-Python正则.md", @@ -185,22 +201,16 @@ "2022-05-18-python虚拟环境.md", "2024-08-15-python最佳实践.md", "新建文本文档.txt", - "2023-11-29-Windows定制.md", - "2021-11-14-Windows权限.md", "2021-12-26-Windows下安装双系统.md", "2024-08-12-Linux硬盘分区指南.md", "2023-09-22-Linux入门.md", "2023-07-26-CentOS初始化.md", "2024-08-12-Linux 硬盘分区指南.md", - "2024-08-04-SpringBoot单元测试.md", - "2023-01-12-IDEA使用.md", "2024-07-20-MySQL之delete.md", "2023-09-21-计算机网络.md", "2024-07-29-网络访问历程.md", "Pasted image 20240729113232.png", "2024-07-26-MySQL索引.md", - "2021-12-31-MySQL语法.md", - "2023-03-26-MySQL原理.md", "未命名绘图.png" ] } \ No newline at end of file diff --git "a/_posts/2023-11-29-Windows\345\256\232\345\210\266.md" "b/_posts/2023-11-29-Windows\345\256\232\345\210\266.md" index d3faf91..291e10a 100644 --- "a/_posts/2023-11-29-Windows\345\256\232\345\210\266.md" +++ "b/_posts/2023-11-29-Windows\345\256\232\345\210\266.md" @@ -4,7 +4,7 @@ catalog: true tags: - Windows --- - + # 1. 暂停更新 打开 cmd ,输入以下内容,暂停更新3000天: @@ -22,13 +22,30 @@ reg add "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\explorer" /v Disa # 3. 设置系统全局默认编码为utf-8 `Windows设置 --> 时间和语言 --> 语言 --> 右侧管理语言设置 --> 更改系统区域设置 --> 使用Unicode UTF-8` +# 4. 系统默认目录迁移 + +实现将系统数据与用户数据分开 + +重装系统时,随意新建一个用户并设置为管理员。进入系统后修改用户目录的配置,然后新建自己的用户名并设置为管理员。重启后最后新建的用户的数据就放在了修改后的目录 +## 4.1. 迁移用户目录 + +- 更改此设置时,不支持 Microsoft Store 应用 +- 使用除系统驱动器之外的驱动器:可将用户配置文件文件夹(通常为 `%SYSTEMDRIVE%\Users`)移动到其他位置。 目标路径可以位于系统驱动器以外的卷上,前提是它满足以下要求: + - 必须位于 NTFS 卷上。 + - 不能指向具有不同 Windows 副本的驱动器。 -# 4. 修改默认桌面的位置 +打开注册表 -只改盘符,不要改路径 +``` +HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ +``` -右键属性->位置 +将`ProfilesDirectory`项改为将要迁移的路径,例如`D:\Users` +## 4.2. 迁移桌面 +迁移文档、视频、下载、图片、音乐、桌面,方式一样 + +`打开此电脑->找到对应文件-> 右键属性->位置` # 5. 卸载右下角的资讯和新闻功能 其实这个功能是和edge浏览器绑定的,可以直接卸载edge浏览器,从而这个功能也会直接卸载 @@ -81,7 +98,6 @@ start explorer.exe # 10. 修改环境变量 - 系统变量:修改后重启才能生效 用户变量:修改后,重启相关应用即可生效 diff --git a/_posts/2024-06-09-Google Search.md b/_posts/2024-06-09-Google Search.md new file mode 100644 index 0000000..85ca48b --- /dev/null +++ b/_posts/2024-06-09-Google Search.md @@ -0,0 +1,145 @@ +--- +layout: post +catalog: true +tags: + - Google +--- + +# 1. Google Advanced Search Operators + +| Operator | Description | Category | +| ----------- | ------------------------------------------------------------ | ---------- | +| `""` | Allows searching for a specific phrase - exact match search. Individual word prevents synonyms | Basic,Mail | +| `OR`/`AND` | Boolean search function for OR searches as Google defaults to AND between words - must be all caps | Basic,Mail | +| `\` | Implements OR | Basic | +| `()` | Allows grouping of operators and helps dictate order | Basic,Mail | +| `-` | Excludes a word from results | Basic,Mail | +| `*` | Acts as a wildcard and will match any word or phrase | Basic | +| `#..#` | # represents a number in this instance. Use to find numbers in a series. | Basic | +| `$` | Allows for search of USD | Basic | +| `€` | Allows for search of Euro | Basic | +| `in` | Allows searches for unit conversion (currency, unit or measure) | Basic | +| `~` | Prefix - Include synonyms (potentially defunct) | Basic | +| `+` | Prefix - Force exact match on single phrase | Basic,Mail | +| `AROUND(X)` | This is sandwiched between two words and the X declares how many words they must be mentioned between. I.e. if it’s (4) then the two keywords must be mentioned within 4 words of each other. | Advanced | +| `_` | Acts as wildcard for autocomplete | Advanced | + +# 2. Search with url + +| Operator | Description | Category | +| ----------- | ------------------------------------------------------------ | -------- | +| `inurl:` | Only returns results where the queried keyword(s) is present in the URL | Advanced | +| `allinurl:` | As above but only containing all of the specified words in the URL | Advanced | +| `blogurl:` | Find blog URLs under a specific domain. This was used in Google blog search, but I’ve found it does return some results in regular search. | Advanced | +| `site:` | Limit results to those from one site | Advanced | +| `related:` | Find similar domains to the queried domain | Advanced | + +# 3. Search with dates + +| Operator | Description | Category | +| ------------ | ------------------------------------------------------------ | ---------- | +| `daterange:` | Return results in a specified range (requires julian dates) | Advanced | +| `after:` | Allows you to search drive or mail for files modified or mail sent/received anytime after a set date | Drive,Mail | +| `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail | +| `older:` | Search for messages older than a certain date | Mail | +| `newer:` | Search for messages newer than a certain date | Mail | + +# 4. Search files + +| Operator | Description | Category | +| --------------- | ------------------------------------------------------------ | ---------- | +| `filename:` | Search for messages with a particular type of file attached, or the exact name of a file | Mail | +| `type:` | Allows you to search drive by file type | Drive | +| `owner:` | Allows you to search drive by owner of file or folder | Drive | +| `to:` | Allows you to search drive for files shared with a specific person | Drive | +| `title:` | Searches drive for files with the keyword in their title alone | Drive | +| `source:domain` | Allows you to search for files or folders shared with everyone in your business | Drive | +| `filetype:` | Returns only files of a particular type associated with the keyword searched | Advanced | +| `ext:` | As above, based on extension | Advanced | +| `after:` | Allows you to search drive or mail for files modified or mail sent/received anytime after a set date | Drive,Mail | +| `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail | +| `is:trashed` | Searches for the item in the Drive bin | Drive | + +# 5. Search with page content + +| Operator | Description | Category | +| -------------- | ------------------------------------------------------------ | -------- | +| `link:` | Find pages that link to the target domain | Advanced | +| `inanchor:` | Find pages linked to with the specified anchor text/ phrase. Data is heavily sampled. | Advanced | +| `allinanchor:` | Find pages with all individual terms after "inanchor:" in the inbound anchor text. | Advanced | +| `intitle:` | Returns pages based on the searched query appearing in their title | Advanced | +| `allintitle:` | Similar to intitle: but only returns titles where all the words in the title match | Advanced | +| `inposttile:` | Finds pages with keywords in their post titles (i.e. for researching blogs) |   | +| `intext:` | Finds pages where the keyword(s) are mentioned within the page content. | Advanced | +| `allintext:` | Similar to “intext,” but only results containing all of the specified words somewhere on the page will be returned. | Advanced | + +# 6. Keywords + +| Operator | Description | Category | +| ----------------- | ------------------------------------------------------------ | -------- | +| `Business` | type E.g. cafe, restaurant, bar etc will return a selection of appropriate businesses in the are | Maps | +| `Petrol/Charging` | Station EV near me or perol station near me returns | Maps | +| `Search` | for a message with a google sheet attached | Mail | +| `Search` | for a message with a google presentation attached | Mail | + +# 7. Search on emails + +| Operator | Description | Category | +| ----------------- | ------------------------------------------------------------ | ---------- | +| `+` | Prefix - Force exact match on single phrase | Basic,Mail | +| `()` | Allows grouping of operators and helps dictate order | Basic,Mail | +| `-` | Excludes a word from results | Basic,Mail | +| `""` | Allows searching for a specific phrase - exact match search. Individual word prevents synonyms | Basic,Mail | +| `OR`/`AND` | Boolean search function for OR searches as Google defaults to AND between words - must be all caps | Basic,Mail | +| `after:` | Allows you to search drive or mail for files modified or mail sent/received anytime after a set date | Drive,Mail | +| `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail | +| `is:starred` | Searches only items that have been starred in drive | Drive,Mail | +| `from:` | Specify the sender in google mail | Mail | +| `to:` | Specify the recipient in google mail | Mail | +| `cc:` | Search by a recipient that was copied into an email | Mail | +| `bcc:` | Search by a recipient that was blind copied into an email | Mail | +| `older:` | Search for messages older than a certain date | Mail | +| `newer:` | Search for messages newer than a certain date | Mail | +| `Search` | for a message with a google sheet attached | Mail | +| `Search` | for a message with a google presentation attached | Mail | +| `AROUND` | Similar to the normal google search function, allows you to search for keywords near each other. | Mail | +| `subject:` | Search by keywords featured in the subject line | Mail | +| `{}` | Use for OR in mail instead of the OR function | Mail | +| `label:` | Search for messages that have a certain label | Mail | +| `has:attachment` | Search for messages that have an item attached | Mail | +| `has:drive` | Search for messages with a google drive attached | Mail | +| `has:document` | Search for messages with a google doc attached | Mail | +| `has:youtube` | Search for a message containing a youtube video | Mail | +| `list:` | Search for all messages from a particular mailing list | Mail | +| `in:anywhere` | Includes all folders in your search, including spam and bin | Mail | +| `is:important` | Search for messages that have been marked as important | Mail | +| `label:important` | Same as is:important | Mail | +| `is:snoozed` | Searches for messages that have been snoozed | Mail | +| `is:unread` | Searches for unread messages | Mail | +| `is:read` | searches for read messages only | Mail | +| `has:yellow-star` | Searches for messages with coloured star icon | Mail | +| `has:blue-info` | Searches for messages with colourd icon | Mail | +| `is:chat` | Searches for messagse from chat | Mail | +| `deliveredto:` | Search by email address for delivered messages | Mail | +| `category:` | Searches by messages based on category. Follow the colon with the categoy name, i.e. category:primary | Mail | +| `size:` | Messages larger than a certain size in bytes | Mail | +| `larger:` | Messages larger than a certain size in bytes | Mail | +| `smaller:` | Messages smaller than a certain size in bytes | Mail | +| `has:userlabels` | Search for messages that have custom user labels | Mail | +| ` ` | Search for messages that have no custom user labels | Mail | + +# 8. Some other useful search operators + +| Operator | Description | Category | +| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | +| `define:` | Pulls a card response from Google displaying the dictionary definition of the word or phrase | Advanced | +| `cache:` | Returns the most up to date cache of an indexed web page | Advanced | +| `weather:` | Brings up the featured snipped for weather for that location | Advanced | +| `stocks:` | Returns stock information for the specified ticker | Advanced | +| `map:` | Force google map results for a particular query | Advanced | +| `movie:` | Find information for the specified movie (particularly useful when that movie has an ambiguous name). If the movie is still in theatres it’ll also return screen times | Advanced | +| `source:` | Use in google news, returns results from the specified source | Advanced | +| `loc:` | Returns results for a specific location | Advanced | +| `location:` | As above but with Google news | Advanced | +| `info:` | Returns information related to a domain (pages with domain text, similar on-site pages, cache etc) | Advanced | +| `near` | Part of the google maps lazy searches e.g. book shops near work | Maps | diff --git a/_posts/2024-06-09-GoogleSearch.md b/_posts/2024-06-09-GoogleSearch.md deleted file mode 100644 index 6579f6e..0000000 --- a/_posts/2024-06-09-GoogleSearch.md +++ /dev/null @@ -1,104 +0,0 @@ ---- -layout: post -catalog: true -tags: - - Google ---- - - - -**site:url 指定网站搜索** - -指定网站搜索 - -例如我要屏蔽谷歌搜索的 csdn.net,修改后的查询网址如下:(加粗部分为新添加的内容) - -{google:baseURL}search?q=+-site:***.csdn.net**+%s&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}{google:baseURL}search?q=%s&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding} - -**before搜索某个时间节点前的** - -`before:2023` - -**搜索指定文件类型** - -使用这个技巧,可以快速帮你找到各个格式的文件。 - -输入:filetype:文档格式 搜索词 - -比如:filetype:pdf 疫情防控 - -**在某个时间范围内搜索** - -如果你想找出某段时间内的搜索结果,可以在搜索引擎中输入:`搜索词 年份..年份(搜索词和年份之间有空格)`。 - -比如:`扩展迷油猴脚本 2020..2021` - -**搜索相关网站** - -想要知道与某个网站相关的网站还有哪些?你仅需在搜索引擎中输入`related:网址`,就可以了。 - -比如:`related:www.google.com` - -**在网页标题、链接和正文中搜索** - -如果你需要找出和搜索词相关的所有网页标题、链接和正文,只需要按下方规则搜索即可: - -把搜索范围限定在网页标题中——`intitle:搜索词` - -把搜索范围限定在url链接中——`inurl:搜索词` - -把搜索范围限定在正文中——`intext:搜索词` - -例如,在搜索引擎中输入:`intitle: 扩展迷安装教程` - -**站内搜索** - -众所周知,许多网站上内容虽然丰富,但欠缺了站内搜索的入口,当我们想要查找网站上的某个资源的话就比较麻烦了。 - -实际上,搜索引擎也可以帮你完成站内搜索的工作。只需输入:`搜索词 site:网址` - -比如搜索:`下载工具 site:www.extfans.com` - -或:`site:www.extfans.com 下载工具` - -**通配符** - -`*`,星号,通配符,可以用作模糊搜索。 - -如果我们忘记了需要搜索的词句的某一部分,就可以用`*`代替缺失的部分。 - -比如:`扩*迷Extfans` - -**排除指定关键词** - -如果在进行准确搜索时没有找到自己想要的结果,你还可以对包含特定词汇的信息进行排除,仅需使用减号,即 `-`就可以了(注意减号前有空格)。 - -使用排除符号搜索:`扩展迷 -哔哩哔哩` - -**OR运算符** - -与AND相反,OR可以返回你输入的多个搜索词分别相关的结果,而不仅仅是和多个搜索词都同时相关的结果。 - -巧妙使用OR运算符,可以让你在未能确定哪个关键词对于搜索结果起决定作用时,依然可以确保搜索结果的准确性。 - -比如:`扩展迷 OR python` - -**AND运算符** - -很多人不知道的是,绝大部分搜索引擎都允许在搜索中使用逻辑运算符。 - -如果你想查询同时包含多个搜索词的所有站点,只需要在搜索引擎中输入:`搜索词 AND 搜索词`。 - -搜索引擎则会返回包含两者的搜索结果。 - -比如:`扩展迷 AND 下载` - -**强制精确匹配** - -当你输入某个长句或者短语进行搜索后,搜索引擎会默认显示所有分别包含各个单词的相关信息。 - -要么就是,只匹配到了你输入的部分字词,这就很令人糟心了。 - -其实这时候,你可以使用引号来强制完全匹配所有字符。 - -如:`"what is extension"` \ No newline at end of file diff --git "a/_posts/2024-08-15-Python\346\234\200\344\275\263\345\256\236\350\267\265.md" "b/_posts/2024-08-15-Python\346\234\200\344\275\263\345\256\236\350\267\265.md" index 3b712ed..9308887 100644 --- "a/_posts/2024-08-15-Python\346\234\200\344\275\263\345\256\236\350\267\265.md" +++ "b/_posts/2024-08-15-Python\346\234\200\344\275\263\345\256\236\350\267\265.md" @@ -7,20 +7,24 @@ tags: # 1. python环境 -![img](F:\笔记\博客\文章图片\91cea233544e4376b53a1821a1df1f62.png) - -安装python的时候相当于安装了一个全局的环境: - -* site-packages目录下是python第三方包(也就是pip install 安装的包都在该目录下) -* 标准库就是原生库(os,sys, math 等等) -* Scripts下是可执行文件(pip install 时就会使用pip.exe这个可执行文件) -* python.exe就是python解释器 +```mermaid +flowchart LR + 6enbg3r6rt0herjfqsulcq8ar1["python环境"] --> 1l8ec5hmd4nl34b6km9tblk5u9["Lib"] + 1l8ec5hmd4nl34b6km9tblk5u9 --> 76qn6d2uiffuuj0n5fou5nl92p["site-packages"] + 76qn6d2uiffuuj0n5fou5nl92p --> 7sq6bva7ms8jfremq5uf1a8ja8["该目录下是python第三方包(也就是pip install 安装的包都在该目录下)"] + 1l8ec5hmd4nl34b6km9tblk5u9 --> 490ei18hcfqvii60dc38csu20n["python标准库"] + 490ei18hcfqvii60dc38csu20n --> 06cfvcesaootvsaq3mp37bg34f["原生库(os,sys, math 等等)"] + 6enbg3r6rt0herjfqsulcq8ar1 --> 2k6uog1geih6e97su5ujs8m0tj["Scripts"] + 2k6uog1geih6e97su5ujs8m0tj --> 1s9qmm47svn1aj64jtng2ghvk0["pip.exe"] + 1s9qmm47svn1aj64jtng2ghvk0 --> 45kp596s35r16j7qhncfod4c4d["pip install 时就会使用pip.exe这个可执行文件"] + 6enbg3r6rt0herjfqsulcq8ar1 --> 5ildhlff6bid0rbfvnrt649bio["python.exe"] + 5ildhlff6bid0rbfvnrt649bio --> 0econebqf24563hvnk0t61ma06["python解释器"] +``` # 2. python虚拟环境 虚拟环境可以看作是原生Python的副本,但是标准库都是一样的。所以每次就不复制标准库,而是直接调用原来的标准库就行。同时解释器也存到Scripts这个目录下,path环境变量只需要增加一个即可 - -# 3. venv创建虚拟环境 +## 2.1. venv创建虚拟环境 **python3.3** 之后**venv**已经作为标准库嵌入到了python中,而之前的版本需要借助**virtualenv**这个第三方库来实现。 @@ -30,15 +34,10 @@ tags: `--without-pip`代表不安装pip(一般都是要装的,所以默认就行) -## 3.1. 创建虚拟环境 +**创建虚拟环境** `python -m venv 安装路径`创建虚拟环境的指令 - -## 3.2. 虚拟环境目录分析 - -进入虚拟环境查看目录结构:Lib是工具包,Scripts是可执行文件(和第一节描述相同) - -# 4. 激活虚拟环境 +## 2.2. 激活虚拟环境 直接激活虚拟环境 @@ -47,12 +46,10 @@ source activate 虚拟环境名字 ``` 或者在Scripts目录下调用activate文件激活虚拟环境 +## 2.3. 关闭虚拟环境 -# 5. 虚拟环境做了什么 +在Scripts目录下调用deactivate文件关闭虚拟环境 +## 2.4. 虚拟环境做了什么 其实激活虚拟环境就是在环境变量PATH中插入激活的虚拟环境的路径 -# 6. 关闭虚拟环境 - -在Scripts目录下调用deactivate文件关闭虚拟环境 - diff --git a/_posts/2024-08-22-Google Chrome.md b/_posts/2024-08-22-Google Chrome.md new file mode 100644 index 0000000..2d941b6 --- /dev/null +++ b/_posts/2024-08-22-Google Chrome.md @@ -0,0 +1,93 @@ +--- +layout: post +catalog: true +tags: + - Google +--- + +# 1. Tab and window + +|Shortcut|Action| +|---|---| +|`Ctrl` `N`|Open a new window| +|`Ctrl` `Shift` `N`|Open a new window in Incognito mode| +|`Ctrl` `T`|Open a new tab, and jump to it| +|`Ctrl` `Shift` `T`|Reopen the last closed tab, and jump to it| +|`Ctrl` `Tab`|Jump to the next open tab| +|`Ctrl` `Shift` `Tab`|Jump to the previous open tab| +|`Ctrl` `1-8`|Jump to a specific tab| +|`Ctrl` `9`|Jump to the last tab| +|`Alt` `Home`|Open your home page in the current tab| +|`Alt` `Left`|Open the previous page from your history in the current tab| +|`Alt` `Right`|Open the next page from your history in the current tab| +|`Ctrl` `W`|Close the current tab| +|`Ctrl` `Shift` `W`|Close the current window| +|`Alt` `Space` `N`|Minimize the current window| +|`Alt` `Space` `X`|Maximize the current window| +|`Alt` `F4`|Close the current window| +|`Ctrl` `Shift` `Q`|Quite Google Chrome| + + +# 2. Google Chrome features + +|Shortcut|Action| +|---|---| +|`Alt` `F`|Open the Chrome menu| +|`Ctrl` `Shift` `B`|Show or hide the Bookmarks bar| +|`Ctrl` `Shift` `O`|Open the Bookmarks manager| +|`Ctrl` `H`|Open the History page in a new tab| +|`Ctrl` `J`|Open the Downloads page in a new tab| +|`Shift` `Esc`|Open the Chrome Task Manager| +|`Shift` `Alt` `T`|Set focus on the first item in the Chrome toolbar| +|`F10`|Set focus on the last item in the Chrome toolbar| +|`F6`|Switch focus to unfocused dialog (if showing)| +|`Ctrl` `F`|Open the Find Bar to search the current page| +|`Ctrl` `G`|Jump to the next match to your Find Bar search| +|`Ctrl` `Shift` `G`|Jump to the previous match to your Find Bar search| +|`F12`|Open Developer Tools| +|`Ctrl` `Shift` `Delete`|Open the Clear Browsing Data options| +|`F1`|Open the Chrome Help Center in a new tab| +|`Ctrl` `Shift` `M`|Log in a different user or browse as a Guest| +|`Alt` `Shift` `I`|Open a feedback form| + +# 3. Address bar + +|Shortcut|Action| +|---|---| +|`(type)` `Enter`|Search with your default search engine| +|`(type)` `Tab`|Search using a different search engine| +|`Ctrl` `Enter`|Add www. and .com to a site name, and open in the current tab| +|`Alt` `Enter`|Open a new tab and perform a Google search| +|`Ctrl` `L`|Jump to the address bar| +|`Ctrl` `K`|Search from anywhere on the page| +|`Shift` `Delete`|Remove predictions from your address bar| + + +# 4. Webpage shortcuts + +|Shortcut|Action| +|---|---| +|`Ctrl` `P`|Open options to print the current page| +|`Ctrl` `S`|Open options to save the current page| +|`Ctrl` `R`|Reload the current page| +|`Ctrl` `Shift` `R`|Reload the current page, ignoring cached content| +|`Esc`|Stop the page loading| +|`Tab`|Browse clickable items moving forward| +|`Shift` `Tab`|Browse clickable items moving backward| +|`Ctrl` `O`|Open a file from your computer in Chrome| +|`Ctrl` `U`|Display non-editable HTML source code for the current page| +|`Ctrl` `D`|Save your current webpage as a bookmark| +|`Ctrl` `Shift` `D`|Save all open tabs as bookmarks in a new folder| +|`F11`|Turn full-screen mode on or off| +|`Ctrl` `+`|Make everything on the page bigger| +|`Ctrl` `-`|Make everything on the page smaller| +|`Ctrl` `0`|Return everything on the page to default size| +|`Space`|Scroll down a webpage, a screen at a time| +|`Shift` `Space`|Scroll up a webpage, a screen at a time| +|`Home`|Go to the top of the page| +|`End`|Go to the bottom of the page| +|`Shift` `(scroll mouse)`|Scroll horizontally on the page| +|`Ctrl` `Left`|Move your cursor to the front of the previous word in a text field| +|`Ctrl` `Right`|Move your cursor to the back of the next word in a text field| +|`Ctrl` `Backspace`|Delete the previous word in a text field| +|`Alt` `Home`|Open the Home page in the current tab|