alex_bn_lee

导航

上一页 1 ··· 148 149 150 151 152 153 154 155 156 ··· 247 下一页

2019年3月18日 #

【379】pandas 说明

摘要: 参考:Kaggle Pandas Tutorial Part 1 参考:Kaggle Pandas Tutorial Part 2 参考:Pandas速查手册 参考:pandas 官方 API pandas.Series:单列的 pandas.DataFrame:数据表格 ref: Pandas: 阅读全文

posted @ 2019-03-18 17:48 McDelfino 阅读(338) 评论(0) 推荐(0)

2019年3月13日 #

【378】python any() and all()

摘要: Reference: [1] Python all() - Python Standard Library [2] Python any() - Python Standard Library all() and any() 函数主要用于需要判断某个数组是不是都满足了某种条件,设置一个跟数组一样的 阅读全文

posted @ 2019-03-13 14:45 McDelfino 阅读(213) 评论(0) 推荐(0)

2019年3月11日 #

【377】only one element in a tuple

摘要: Recently I am doing the assignment of COMP9021. It is too difficult and it is about the Knight and Knave. While I tried to finish this assignment, how 阅读全文

posted @ 2019-03-11 07:53 McDelfino 阅读(154) 评论(0) 推荐(0)

2019年2月28日 #

【376】COMP 9021 相关笔记(二)

摘要: Note_01 zip() itertools.zip_longest() %time Note_02 for 循环单行输出 list 技巧 迭代器 生成器 map() zip() from pathlib import PathPath.glob:可以用来查询文件名 import csvcsv.r 阅读全文

posted @ 2019-02-28 08:04 McDelfino 阅读(153) 评论(0) 推荐(0)

2019年2月27日 #

【375】COMP 9021 相关笔记

摘要: 1. Python 中的逻辑否定用 not 2. 对于下面的代码直邮输入整数才能运行,无论字符串或者浮点型都会报错 可以通过 try 来修改,同时注意 raise 的使用 3. set 与 dict 都是大括号 4. random.choice() 可以随机选择列表里面的元素 random.rand 阅读全文

posted @ 2019-02-27 12:43 McDelfino 阅读(212) 评论(0) 推荐(0)

上一页 1 ··· 148 149 150 151 152 153 154 155 156 ··· 247 下一页