#_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, render_template, request, url_for, redirect from flask_sqlalchemy import ...
分类:
其他好文 时间:
2021-04-13 12:32:12
阅读次数:
0
# 通用内置函数 ## pow() ### 求次幂 a1 = pow(2,3) #等同与2**3 print(a1) 结果:8 ## ord() ### 字符转换位数字 print(ord("a")) #对照ascll码 结果:97 ## chr() ### 将数字转换成unicode格式的字符,可 ...
分类:
其他好文 时间:
2021-04-13 12:31:01
阅读次数:
0
from flask import Flask from flask_restful import Api,Resource app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return ...
分类:
其他好文 时间:
2021-04-13 12:26:40
阅读次数:
0
package stream import ( "log" "reflect" "sort" ) type ( // a Stream is where one can drain data from Stream chan interface{} // buffer stream BufferSt ...
vi string_array.sh #!/bin/bash city=(Nanjing Atlanta Massachusetts Marseilles) #建立一个简单的数组echo "Extracting Substring" #演示抽取子串功能echo ${city[*]:0} #抽取整个数 ...
分类:
编程语言 时间:
2021-04-13 12:08:59
阅读次数:
0
from aliyunsdkcore.client import AcsClient from aliyunsdkcore.acs_exception.exceptions import ClientException from aliyunsdkcore.acs_exception.excepti ...
分类:
其他好文 时间:
2021-04-13 11:55:43
阅读次数:
0
##RequestMapping RequestMapping中的method方法 method:指定请求的method类型, GET、POST、PUT、DELETE等; ##GetMapping 看一下注解的底层源码 可以看到底层用了@RequestMapping(method = Request ...
分类:
移动开发 时间:
2021-04-13 11:47:36
阅读次数:
0
TRUNCATE 用法: TRUNCATE TABLE 表名 DDL语句,删除内容、释放空间,保留表结构。删除表数据,不能删除行数据。 DELETE 用法: DELETE TABLE 表名 WHERE 条件 DML语句,同TRUNCATE类似,DELETE即可删除行也是删除整个表数据,删除操作有记录 ...
分类:
数据库 时间:
2021-04-12 12:56:56
阅读次数:
0
from fractions import Fraction def newint(): opr = ['+', '-', '×', '÷'] fh = random.randint(0, 3) n1 = random.randint(1, 20) n2 = random.randint(1, 20 ...
分类:
其他好文 时间:
2021-04-12 12:52:59
阅读次数:
0
1 def find_worldByName(c_name,continent): 2 print(c_name) 3 print(continent) 4 sql = " SELECT * FROM world WHERE 1=1 " 5 if(c_name!=None): 6 sql=sql+" ...
分类:
数据库 时间:
2021-04-12 12:45:06
阅读次数:
0