[TOC]## 1. Python基础### 1.1. 准备工作+ 安装python3,版本要求>=3.6+ 了解python的运行 启动python-IDLE,并运行 `print('hello world')`+ 预习内容请自行完成 + 教程推荐 + [《Python入门,从19个语法开始》](... ...
分类:
其他好文 时间:
2020-10-19 23:02:11
阅读次数:
34
Chrome+IE默认支持粘贴剪切板中的图片,但是我要发布的文章存在word里面,图片多达数十张,我总不能一张一张复制吧?Chrome高版本提供了可以将单张图片转换在BASE64字符串的功能。但是无法处理多张图片。而且转换成BASE64后是作为内容一起提交给服务器,不能够将图片单独保存在另外一台服务 ...
分类:
其他好文 时间:
2020-10-19 22:45:18
阅读次数:
25
当master服务器宕机,提升一个slave成为新的master
分类:
其他好文 时间:
2020-10-19 22:22:37
阅读次数:
21
C中有些特殊的宏定义,面试时候被问到,写个短文总结下。 宏定义中的 #和## 连字符 这两个字符在宏定义中代表连接和替换, #紧跟字母表示对应字符的字符串化,将对应的字符转换成对应的字符串,比如#hello就是"hello" ##表示将宏定义中的两个标识符连接在一起,组成一个新的标识符,类似胶水。它 ...
分类:
编程语言 时间:
2020-10-18 16:49:41
阅读次数:
29
ABAP 正则表达式 ABAP支持正则表达式。 支持正则表达式的语句: 1.FIND,REPLACE语句; 2.Functions:count,count_xxx,contains,find,find_xxx,match,matches,replace,substring,substring_xxx ...
分类:
其他好文 时间:
2020-10-18 16:46:52
阅读次数:
27
连接字符串 连接是一个很花哨的编程词,意思是“连接在一起”。在JavaScript中连接字符串使用加号(+)操作符,我们也用它来将数字加在一起,但是在这种情况下,它做了一些不同的事情。让我们在控制台中尝试一个例子。 let one = 'Hello, '; let two = 'how are yo ...
分类:
其他好文 时间:
2020-10-18 16:33:27
阅读次数:
17
Given an input string s, reverse the order of the words. A word is defined as a sequence of non-space characters. The words in s will be separated by ...
分类:
其他好文 时间:
2020-10-18 10:19:49
阅读次数:
29
安装及使用 安装 npm install typescript -g 复制代码 或 yarn global add typescript 复制代码 使用 新建demo.ts: function test() { let web: string="hello world" console.log(we ...
分类:
其他好文 时间:
2020-10-16 11:07:32
阅读次数:
22
mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 model = tf. ...
分类:
其他好文 时间:
2020-10-16 10:58:02
阅读次数:
22
tinymce是很优秀的一款富文本编辑器,可以去官网下载。https://www.tiny.cloud 这里分享的是它官网的一个收费插件powerpaste的旧版本源码,但也不影响功能使用。 http://blog.ncmem.com/wordpress/2019/08/07/umeditor%E7 ...
分类:
其他好文 时间:
2020-10-14 20:42:33
阅读次数:
25