- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 Python Dictionarie 字典
Dictionaries 字典(很像C++里的map)dictionary = {"string1" : 1 , "string2" : 2 , "string3" : 3 } # dictionary [ string1 ] == 1# 也可以像这样 不过貌似前面的必须用字符串 dictionary = { "string1" : 'string4' , "stri
2017-12-22 14:00:01
489
原创 最大公因数
辗转相除法 欧几里得法//递归 int gcd(int a,int b){ if(a % b == 0) return b; return gcd(b,a%b); }int gcd(inta,intb) { int temp; while(b) { /*利用辗除法,直到b为0为止*/ temp = b; b =
2017-12-21 12:36:02
551
原创 Python List 列表
数组 list = [0,1,2,3] # list [0] == 0 empty_list = [] #空数组 letters = ['a', 'b', 'c'] letters.append('d') # 现在letters == ['a', 'b', 'c', 'd'] len(letters) #返回iettees里item的个数 数字的复制 letters = ['a
2017-12-10 20:23:11
340
原创 Python Function 函数
自定义函数def name ( parameter1 , parameter2 ) : # 别忘了冒号 参数可以有任意个(貌似可以没有) res = parameter1 * parameter2 #pyhon 用空格缩进 return res # 可以没有返回值Python 模块 里的函数print sqrt(25) import math #generi
2017-12-09 10:31:37
1067
统计学习方法(pdf+epub)
2019-03-09
统计学习方法.epub
2019-03-09
动手学深度学习
2019-02-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人