摘要: argparse"应用"于jupyter notebook中 args.xx ======================= args["xx"] argparse.ArgumentParser() ======= dict 想要有输入, 加个input()即可解决, 也算是低配仿制版吧, 哈哈. 阅读全文
posted @ 2017-11-20 19:49 默盒 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 在终端输入: , 并将其内容 添加至Pycharm的 中, 如图: 即可. 阅读全文
posted @ 2017-11-20 19:26 默盒 阅读(1328) 评论(0) 推荐(0) 编辑
摘要: ```python3 import numpy as np import matplotlib.pyplot as plt def kmeans(data, cluster_num, method='mean'): points = np.array(data) labels = [] random 阅读全文
posted @ 2017-11-20 14:27 默盒 阅读(1350) 评论(0) 推荐(1) 编辑