06 2020 档案
摘要:1. 添加依赖 dependencies: url_launcher: ^5.4.11 2. openWebView app _launchURL() async { const url = 'http://it200.cn/'; if (await canLaunch(url)) { await
阅读全文
摘要:1. 添加依赖 dependencies: flutter_redux: ^0.6.0 2. 定义State /// 1.定义状态 class AppStates { ThemeData themeData; AppStates({this.themeData}); } /// 2.提供appRed
阅读全文
摘要:flutter packages 发布指北 检测 flutter packages pub publish --dry-run 发布 flutter package: flutter packages pub publish --server=https://pub.dartlang.org 记录一
阅读全文
摘要:Fluro_Plus项目简介 Fluro_Plus对Fluro的传参进行来包装,通过传递和接收Bundle来方便使用,目前在初学阶段,欢迎指点 使用说明 引入依赖 fluro_plus: git: https://github.com/OSpoon/fluro_plus.git 构建项目路由 ///
阅读全文
摘要:还在学习Flutter中,这个操作不知道什么时候失效了,目前AndroidStudio4.0和相关的Dart,Flutter的插件都升级的最新的 1. 开启: Quick assist powered by the Dart Analysis Server. 2. 操作: File-> Settin
阅读全文
摘要:1. 手动整合Flutter到Android项目 Flutter支持x86_64,armeabi-v7a,arm64-v8a android { //... defaultConfig { ndk { // Filter for architectures supported by Flutter.
阅读全文
摘要:import os import shutil del_list = [] def del_svn(f): fs = os.listdir(f) for f1 in fs: tmp_path = os.path.join(f, f1) if not os.path.isdir(tmp_path):
阅读全文
摘要:RabbitMQ的基本使用 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> 定义消息接收一 /*
阅读全文
摘要:pom依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>
阅读全文
摘要:import os import time start_time = '2018-09-11 00:00:00' start_time_arr = time.strptime(start_time, "%Y-%m-%d %H:%M:%S") start_time_ = time.mktime(sta
阅读全文
摘要:import requests import json import os ''' 上传文件进行压缩并获取返回压缩后的图片地址 ''' def get_down_url(file_path): url = 'https://tinypng.com/web/shrink' with open(file
阅读全文
摘要:示例 : from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.
阅读全文
摘要:Scrapyd-DOC [TOC] 安装 pip install scrapyd API daemonstatus.json 检查服务的负载状态 示例请求: curl http://localhost:6800/daemonstatus.json 响应示例: { "status": "ok", "r
阅读全文
摘要:Requests # 导入requests包 import requests # get请求 r = requests.get('https://www.toutiao.com/stream/widget/local_weather/data/?city=北京') # 输出文本内容 print(r.
阅读全文
摘要:from requests_html import HTMLSession from urllib.request import unquote import os ''' redmine系统通过bug号解析页面内容及下载附件 ''' base_url = '' cookies = dict( _r
阅读全文
摘要:Python字典Dictionary 特点: 1.可变容器模型; 2.存储任意类型对象; 3.key不一定唯一,如重复按最后出现的计算; 4.键必须不可变,所以可以用数字,字符串或元组充当,所以用列表就不行 格式:{'k1':'v1','k2':'v2','k3':'v3'} 基本操作 定义一个字典
阅读全文
摘要:mongod --auth --dbpath="/usr/local/mongodb/data" --logpath="/usr/local/mongodb/logs/mongod.log" --install #创建admin数据表 use admin #创建管理用户的用户 db.createUs
阅读全文
摘要:''' 将浏览器复制后的请求头转为字典 ''' def headers_raw_to_dict(headers_raw): if headers_raw is None: return None headers = headers_raw.splitlines() headers_tuples =
阅读全文
摘要:环境:ubuntu-14.04.3(预装python3.4) 1.flask(Web框架) 2.gunicorn(python Wsgi http server) 1.安装 sudo pip3 install gunicorn 2.修改入口文件 from werkzeug.contrib.fixer
阅读全文
摘要:cos sdk 安装 sdkname = cos-python-sdk-v5 腾讯云COSV5Python SDK, 目前可以支持Python2.6与Python2.7 pip安装指南: pip install -U cos-python-sdk-v5 cos最新可用地域,参照 https://ww
阅读全文
摘要:fluro_support Quick to use Fluro Getting Started You should ensure that you add the router as a dependency in your flutter project. dependencies: flur
阅读全文