var str = 'hello world' // 获取字符串长度 console.log(str.length) // 获取字符串指定位置的字符 console.log(str.charAt('4')) // 获取字符串指定位置字符的字符编码(Unicode) console.log(str.c ...
分类:
Web程序 时间:
2020-04-01 00:41:51
阅读次数:
86
prism的官方网站地址: "https://prismjs.com/index.html" 。 插件用途是给代码段,即 language `类来区分应用不同的语义识别。 下载时可以定制支持的语言和主题,我使用了默认的主题,添加了一些常用的语言( 等等)。 一些例子 ...
分类:
Web程序 时间:
2020-03-31 22:33:45
阅读次数:
105
导读: 1.Basic Text Demo:在三个不同的屏幕位置写“Hello World”,用三种不同的颜色和三种不同的字体 Screen('TextFont', window, TextFont) 设置当前窗口的字体 参数TextFont是字体名称或者字体编号,为字符型或者数字型(字体编号对wi ...
分类:
其他好文 时间:
2020-03-31 19:10:59
阅读次数:
88
Python 官方文档 PEP 443(单分派泛型函数)的译文,本人原创。 ...
分类:
编程语言 时间:
2020-03-31 10:47:53
阅读次数:
80
app.py from flask import Flask,jsonify app = Flask(__name__) app.route("/index") def index(): print("进入函数") return "hello world" if __name__ == '__mai ...
分类:
其他好文 时间:
2020-03-31 01:09:16
阅读次数:
137
原生的http在某些方面表现不足以应对我们的开发需求,所以需要使用框架来加快我们的开发效率,框架的目的就是提高效率,让我们的代码更高度统一。 起步 安装: npm install express --save hello world 示例 const express = require('expre ...
分类:
其他好文 时间:
2020-03-31 00:55:53
阅读次数:
72
1.创建sh文件 touch hello.sh vi hello.sh 输入i 插入 #!/bin/sh echo hello world; 按esc 输入:然后输入wq保存退出 增加sh执行权限 chmod 700 hello.sh 有执行权限的文件是绿色的 执行./hello.sh 2.加入定时 ...
分类:
系统相关 时间:
2020-03-30 23:12:47
阅读次数:
90
Problem Statement Problem Dr. Patel has N stacks of plates. Each stack contains K plates. Each plate has a positive beauty value, describing how beaut ...
分类:
其他好文 时间:
2020-03-30 09:49:38
阅读次数:
81
ylbtech-Help-IntelliJIDEA-2019.3.4-APP:Hello World! 1.返回顶部 · · · · ·· · ······· 2.返回顶部 ·Main.java package com.company; public class Main { public stat ...
分类:
移动开发 时间:
2020-03-29 18:02:14
阅读次数:
282
C++ Python PHP BASIC Pascal 文言 ...
分类:
编程语言 时间:
2020-03-29 17:46:55
阅读次数:
69