码迷,mamicode.com
首页 >  
搜索关键字:python color    ( 309650个结果
Python collections
collections collections是Python内建的一个集合模块,提供了许多有用的集合类。 nametuple是一个函数,它用来创建一个自定义的tuple对象,并且规定了tuple元素的个数,并可以用属性而不是索引来引用tuple的某个元素。这样一来,我们用namedtuple可以很方 ...
分类:编程语言   时间:2021-05-24 14:16:35    阅读次数:0
获取天气信息,解决乱码问题
public class WeatherUtil { private static final Logger LOGGER = LoggerFactory.getLogger(WeatherUtil.class); public static String doGet(String path){ S ...
分类:其他好文   时间:2021-05-24 14:15:35    阅读次数:0
基于Yen算法的k最短路径问题的python实现
老规矩,先上代码 #date:2021-5-17 #author:Linuas #b站:会武术的白猫 import copy def Dijkstra(network,s,d):#迪杰斯特拉算法算s-d的最短路径,并返回该路径和代价 #print("Start Dijstra Path……") pa ...
分类:编程语言   时间:2021-05-24 14:13:38    阅读次数:0
Python解释器有哪些类型,有什么特点?
Python解释器有哪些类型,有什么特点? CPython:由C语言开发,而且使用范围最为广泛 IPython:基于CPython的一个交互式计时器。 PyPy:提高执行效率,采用 JIT 技术。对Python代码进行动态编译。 JPython:运行在Java上的解释器,直接把 Python 代码编 ...
分类:编程语言   时间:2021-05-24 14:08:30    阅读次数:0
Scala基础
Scala语言类型(同java) 静态,强,类型推断, 弱类型:(javascripte) > "1"+2 '12' 强类型:(java,scala,python) >>> "1"+2 TypeError: cannot concatenate 'str' and 'int' objects 动态类 ...
分类:其他好文   时间:2021-05-24 14:04:24    阅读次数:0
安装pymysql报错 TypeError: 'encoding' is an invalid keyword argument for this function
安装pymysql报错: TypeError: 'encoding' is an invalid keyword argument for this function Command "python setup.py egg_info" failed with error code 1 in c:\ ...
分类:数据库   时间:2021-05-24 13:57:46    阅读次数:0
安装python模块是提示C:\Users\lenovo>pip install pymysql Unknown or unsupported command 'install'
问题: 安装pymysql时遇到报错 C:\Users\lenovo>pip install pymysql Unknown or unsupported command 'install' 解决办法: 直接用 pip.exe install pymysql 进行安装即可 ...
分类:数据库   时间:2021-05-24 13:56:47    阅读次数:0
安装python模块是报错Requirement already satisfied: pymysql in c:\python27\lib\site-packages (0.9.2) Requirement already satisfied: cryptography in c:\python27\lib\site-packages (fr om pymysql) (2.3.1)
问题: 安装pymysql时报错 Requirement already satisfied: pymysql in c:\python27\lib\site-packages (0.9.2)Requirement already satisfied: cryptography in c:\pyth ...
分类:数据库   时间:2021-05-24 13:51:05    阅读次数:0
promise
promise.then 如果不加第二个参数则会执行catch方法, 加第二个参数则不会执行catch方法。 var pro=new Promise((resolve,reject)=>{ // resolve(); reject(); }) pro.then(()=>{ console.log(' ...
分类:其他好文   时间:2021-05-24 13:41:41    阅读次数:0
用python写九九乘法表
for i in range(1,10): for j in range(1,i+1): print(i,"*",j,"=",i*j, "\t",end="") else: print("") 1 * 1 = 1 2 * 1 = 2 2 * 2 = 4 3 * 1 = 3 3 * 2 = 6 3 * ...
分类:编程语言   时间:2021-05-24 13:38:54    阅读次数:0
309650条   上一页 1 ... 75 76 77 78 79 ... 30965 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!