将昨日取得的众多的沪深龙虎榜数据整一整 提取文件夹内所有抓取下来的沪深龙虎榜数据,整理出沪深两市(含中小创)涨幅榜股票及前5大买入卖出资金净值,保存到csv文件 再手动使用数据透视表进行统计 原始数据: 整理后数据: 代码如下(如果觉得对于炒股又用,敬请使用): #coding=utf-8 import re import os import time import datetime def writeFile(file,stocks,BS,day): for s in stocks: allf…
Bluetooth Using the Bluetooth APIs, an Android application can perform the following: 使用蓝牙APIs,一个Android应用能够进行例如以下操作: Scan for other Bluetooth devices 扫描其它蓝牙设备 Query the local Bluetooth adapter for paired Bluetooth devices 查找本地已经配对的蓝牙设备 Establish RFC…
Bluetooth —— 蓝牙 The Android platform includes support for the Bluetooth network stack, which allows a device to wirelessly exchange data with other Bluetooth devices. The application framework provides access to the Bluetooth functionality through th…
2018-11-7 20:41:20 星期三 1. 解析URL function parseUrl(url){ url = decodeURIComponent(url); var u = url.split('?'); var query = u[1]; var args = {}; var items = query.split("&"); var item = null, name = null, value = null; for(var i=0; i < ite…
容错声明: ①题目选自https://acm.ecnu.edu.cn/,不再检查题目删改情况 ②所有代码仅代表个人AC提交,不保证解法无误 E0001 A+B Problem First AC: 2017-10-13 Latest Modification: 2018-02-28 #include<bits/stdc++.h> using namespace std; int a,b; int main() { cin>>a>>b; cout<<…
表是这样的: id是自增长字段,code和name都是255位的varchar. 下面是主角app.js的代码: 'use strict'; var express=require('express'); var http=require('http'); var fs=require('fs'); var app=express(); var mysql=require('mysql'); var pool=mysql.createPool({ host:'127.0.0.1', port:'…
感觉crud是高级形式的hello world了. app代码: 'use strict'; var express=require('express'); var http=require('http'); var fs=require('fs'); var app=express(); var mysql=require('mysql'); var pool=mysql.createPool({ host:'127.0.0.1', port:'3306', database:'test',…