## 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co ...
分类:
其他好文 时间:
2021-04-23 12:11:50
阅读次数:
0
from wordcloud import WordCloud,ImageColorGeneratorimport jiebaimport numpy as npimport matplotlib.pyplot as pltfrom PIL import Image with open('西游记.t ...
分类:
其他好文 时间:
2021-04-23 12:11:32
阅读次数:
0
1 import yh 2 from selenium import webdriver 3 from PIL import Image 4 # from selenium.webdriver import ActionChains 5 # from selenium.webdriver impor ...
分类:
Web程序 时间:
2021-04-23 12:10:24
阅读次数:
0
做法:记录每个点i向左与它最近的不互质的数j,从j+1到i是可以分成1块的。 对于每次询问,从r开始一直贪心往前跳,每跳一步ans++;但这样一步一步跳会T,需要去倍增优化。 #include<bits/stdc++.h> using namespace std; #define ll long l ...
分类:
其他好文 时间:
2021-04-23 12:09:38
阅读次数:
0
https://blog.csdn.net/dietime1943/article/details/72742651 错误的做法: update 表1 set 表1.字段= (SELECT表2.字段FROM表2 where 表2.ID = 表1.ID) 后面这种情况其实可以使用left join的方 ...
分类:
数据库 时间:
2021-04-23 12:02:59
阅读次数:
0
第一步: 创建lang文件夹 index.js import Vue from 'vue' import VueI18n from 'vue-i18n' import Cookies from 'js-cookie' import elementEnLocale from 'element-ui/l ...
分类:
其他好文 时间:
2021-04-23 11:59:54
阅读次数:
0
django在创建项目时自动在应用下的创建了test.py,这个py文件可以作为测试文件;也可以在应用下手动创建一个py测试文件。无论哪种方式,都需要提前书写以下代码: from django.test import TestCase # test.py中无需手动导入,手动创建的测试文件需导入 im ...
分类:
其他好文 时间:
2021-04-23 11:51:09
阅读次数:
0
#!/usr/bin/env python # -*- coding:utf-8 -*- # <editable> def execute(): # <editable> ''' 载入模块 ''' from collections import Counter import pandas as pd ...
分类:
编程语言 时间:
2021-04-23 11:49:29
阅读次数:
0
方法1 select count(1) from sys.objects where name = 'student' 方法2 SELECT table_name FROM information_schema.TABLES WHERE table_name ='student' 程序员阿飞 202 ...
分类:
数据库 时间:
2021-04-22 16:12:38
阅读次数:
0
上班想摸鱼?为了摸鱼方便,今天自己写了个爬取笔阁小说的程序。好吧,其实就是找个目的学习python,分享一下。 1. 首先导入相关的模块 import os import requests from bs4 import BeautifulSoup 2. 向网站发送请求并获取网站数据 网站链接最后的 ...
分类:
编程语言 时间:
2021-04-22 16:03:13
阅读次数:
0