随笔分类 - python
摘要:1.简单使用 一、配置类 @Configuration @EnableAsync public class SpringAsyncConfig { @Bean("taskExecutor") public Executor asyncServiceExecutor() { ThreadPoolTas
阅读全文
摘要:import pandas as pdimport numpy as npfrom matplotlib import pyplot as plt#获取各种电影类型的数量file='./IMDB-Movie-Data.csv'data=pd.read_csv(file)genre=data['Genre']genre_list=genre.str.split(',').tolist()#转为一...
阅读全文
摘要:三、字典(dict) 1.字典的创建赋值创建字典In [2]: d = {1,True,"hello"} In [3]: type(d)Out[3]: set #字典由key和value构成,一个key对应一个value,key-value , 键值对In [4]: d = {1:"freya",2
阅读全文
摘要:一,元组 1.元组的创建(可以把元组看作一个容器,任何数据类型都可以放在里面)通过赋值方法创建元组In [5]: t = ("hello",2.3,2,True,{1:"hello",2:"world"},) In [6]: type(t)Out[6]: tuple In [7]: t = (1)
阅读全文
摘要:
阅读全文
该文被密码保护。