from flask import Flask
app = Flask(__name__)
@app.route('/')
def helloword():
return 'Hello Word'
if __name__ == &...
4年前 (2021-08-20)
喜欢
pip3 install Flask
或者使用阿里云的源进行安装
pip3 install -i https://mirrors.aliyun.com/pypi/simple flask
...
4年前 (2021-08-20)
喜欢
Consider using the --user option or check the permissions.
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permissi...
4年前 (2021-08-20)
喜欢
js
import AMapLoader from '@amap/amap-jsapi-loader';
created() {
var that = this;
AMapLoader.load({
...
4年前 (2021-08-20)
喜欢
var number1=1;
let number2=2;
const number3=3;
少用var 多用let
...
4年前 (2021-08-20)
喜欢
ES5 ES3 支持目前所有主流浏览器
没有ES4
ES6=ES2015目前浏览器不支持,未来会支持。
ES2016 就是 (ES7)
ES2017 就是 (ES8)
...
4年前 (2021-08-20)
喜欢
@debug 在 Sass 中是用来调试的,当你的在 Sass 的源码中使用了 @debug 指令之后,Sass 代码在编译出错时,在命令终端会输出你设置的提示 Bug:
@debug 10em + 12em;
会输出:
Line 1 DEBUG: 22em
...
4年前 (2021-08-20)
喜欢
@error 和 @warn、@debug 功能是如出一辙。
@mixin error($x){
@if $x < 10 {
width: $x * 10px;
} @else if $x == 10 {
width: $x;
} @else {...
4年前 (2021-08-20)
喜欢
@at-root 从字面上解释就是跳出根元素。当你选择器嵌套多层之后,想让某个选择器跳出,此时就可以使用 @at-root。
.a {
color: red;
.b {
color: orange;
.c {
color: yellow;
...
4年前 (2021-08-20)
喜欢
Sass 中的 @extend 是用来扩展选择器或占位符。比如:
.error {
border: 1px #f00;
background-color: #fdd;
}
.error.intrusion {
background-image: url("/...
4年前 (2021-08-20)
喜欢