.batwindow发布hexo博客时,需要多个命令,现在编写bat文件
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950@echo offecho ====================================echo 欢迎使用 Hexo 命令助手 请选择命令echo 本地测试或上传网站时,将自动清理缓存echo ====================================echo 1. 访问作者博客echo 2. 本地测试echo 3. 上传网站echo 4. 清理缓存echo 5. 新建文章echo 6. 新建页面echo .set /p input="请选择命令并按下回车:"if %input%==1 goto Aif %input%==2 goto Bif %input%==3 goto Cif %input%==4 goto Dif %input%==5 goto Eif %input%==6 got ...
工具教程
未读自动获取driverchrome下载驱动12345678910111213@staticmethoddef down_driver(option): ''' return: 返回driver,可以直接使用 ''' driver = webdriver.Chrome( ChromeDriverManager( url="https://registry.npmmirror.com/-/binary/chromedriver", latest_release_url="https://registry.npmmirror.com/-/binary/chromedriver/LATEST_RELEASE", cache_valid_range=365).install(), ...
工具教程
未读selenium 配置参数每次当selenium启动chrome浏览器的时候,chrome浏览器很干净,没有插件、没有收藏、没有历史记录,这是因为selenium在启动chrome时为了保证最快的运行效率,启动了一个裸浏览器,这就是为什么需要配置参数的原因,但是有些时候我们需要的不仅是一个裸浏览器
selenium启动配置参数接收是ChromeOptions类,创建方式如下 :
1234from selenium import webdriveroption = webdriver.ChromeOptions()driver = webdriver.Chrome(chrome_options=option)创建了ChromeOptions类之后就是添加参数,添加参数有几个特定的方法,分别对应添加不同类型的配置项目
12from selenium import webdriveroption = webdriver.ChromeOptions()
添加启动参数1option.add_argument()
添加扩展应用12option.add_extension()option.add ...
工具教程
未读Mac 提示文件已损坏,您应该将它移到废纸篓解决办法:
在终端输入
sudo xattr -d com.apple.quarantine /Applications/PicGo.app
/后面是安装路径
然后输入密码
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
学习日常
未读 I grew up with my identical twin, who was an incredibly loving brother. Now, one thing about being a twin is, it makes you an expert at spotting favoritism. If his cookie was even slightly bigger than my cookie, I had questions. And clearly, I wasn’t starving
我和我的双胞胎哥哥一起长大,他是个富有爱心的好兄弟。要知道,作为双胞胎,你很快 就在一件事上成为专家,就是注意到偏爱。如果他的饼干比我的大 哪怕一点点,我就会质疑。当然我也没被饿着。
identical adj.相同的
slightly adv.轻微地
psychologist n心理学家
When I became a psychologist, I began to notice favoritism of a different kind; and t ...
学习日常
未读记录的目的想学习英语,目前的一个目标也可能是因为考研吧,在学校的时候专升本考试真是没有重视,导致面临了这个一个尴尬的局面(当时考虑的是学历不重要,结果刚出学校社会就给出一个巴掌),还是要有一个学历,英语在工作中也是要使用的,加油!
学习进程目前在使用不背单词软件背单词,但是心里总想偷懒,特意做记录一下,学习长难句也会在这个博客上进行记录
原文 Curbs on business-method claims would be a dramatic about-face, because it was the
Federal Circuit itself that introduced such patents with its 1998 decision in the so-called
State Street Bank case, approving a patent on a way of pooling mutual-fund assets.
【2010英语一Text2】
分析过程
找动词
划分主从句
进行翻译
curb:控制
about-face (abou ...
工具教程
未读
注:这个魔改转载于Ariasakaの小窝
导航栏分离菜单栏和搜索栏让搜索栏放在最右侧,其他的导航栏居中
修改[blogRoot]\themes\Butterfly\layout\includes\header\nav.pug:
12345678910111213141516171819202122nav#nav span#blog_name a#site-name(href=url_for('/')) #[=config.title] #menus- if (theme.algolia_search.enable || theme.local_search.enable)- #search-button- a.site-page.social-icon.search- i.fas.fa-search.fa-fw- span=' '+_p('search.title') !=partial('includes/header/men ...
原句1234567 Curbs on business-method claims would be a dramatic about-face, because it was the Federal Circuit itself that introduced such patents with its 1998 decision in the so-called State Street Bank case, approving a patent on a way of pooling mutual-fund assets.【2010英语一Text2】
提取单词business: 商业
claim: 宣称,声称,断言
dramatic: 巨大而广阔的
about-face: n. (思想、态度、行为等)彻底改变; v. 向后转(同 about-turn)
federal: adj. 联邦的,政府的
分割 Curbs on business-method claims would be a dramatic about-f ...