ZhangZhihui's Blog  
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 78 下一页

2022年3月29日

摘要: pstree -ap <pid> [pkill will send the specified signal (by default SIGTERM) to each process instead of listing them on stdout.] [-P, --parent ppid,... 阅读全文
posted @ 2022-03-29 08:16 ZhangZhihuiAAA 阅读(35) 评论(0) 推荐(0) 编辑

2022年3月7日

摘要: >>> import glob >>> glob.glob('*', recursive=True) ['a.txt', 'bbb'] >>> glob.glob('**', recursive=True) ['a.txt', 'bbb', 'bbb\\b.txt', 'bbb\\ccc', 'bb 阅读全文
posted @ 2022-03-07 11:30 ZhangZhihuiAAA 阅读(17) 评论(0) 推荐(0) 编辑
 
摘要: You can translate this fragment into Python by arranging the choices and functions into a dictionary: actions = {0: make_computer_move, 1: make_human_ 阅读全文
posted @ 2022-03-07 09:54 ZhangZhihuiAAA 阅读(37) 评论(0) 推荐(0) 编辑

2022年2月16日

摘要: Need to set xticks first, then set xticklabels. x = np.arange(len(df_pivot['tla'])) ax2.set_xticks(x) ax2.set_xticklabels(df_pivot['tla']) 阅读全文
posted @ 2022-02-16 23:02 ZhangZhihuiAAA 阅读(572) 评论(0) 推荐(0) 编辑
 
摘要: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until ex 阅读全文
posted @ 2022-02-16 16:19 ZhangZhihuiAAA 阅读(841) 评论(0) 推荐(0) 编辑
 
摘要: import base64 from datetime import date from io import BytesIO from matplotlib.ticker import MaxNLocator def fig_to_html(fig): """ Convert a matplotli 阅读全文
posted @ 2022-02-16 15:55 ZhangZhihuiAAA 阅读(24) 评论(0) 推荐(0) 编辑
 
摘要: fig_width = fig.get_figwidth() xmargin_ratio, ymargin_ratio = ax.margins() xmargin = fig_width * xmargin_ratio 阅读全文
posted @ 2022-02-16 14:15 ZhangZhihuiAAA 阅读(53) 评论(0) 推荐(0) 编辑

2022年2月15日

摘要: MONTHS = [f'{i:02}' for i in range(1, 13)] print(MONTHS) ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'] 阅读全文
posted @ 2022-02-15 10:41 ZhangZhihuiAAA 阅读(50) 评论(0) 推荐(0) 编辑

2022年2月3日

摘要: import pandas as pd import matplotlib.pyplot as plt data=[["Rudra",23,156,70], ["Nayan",20,136,60], ["Alok",15,100,35], ["Prince",30,150,85] ] df=pd.D 阅读全文
posted @ 2022-02-03 11:02 ZhangZhihuiAAA 阅读(43) 评论(0) 推荐(0) 编辑

2022年1月30日

摘要: fig1.set_figwidth(12) fig1.set_figheight(6) 阅读全文
posted @ 2022-01-30 16:35 ZhangZhihuiAAA 阅读(24) 评论(0) 推荐(0) 编辑
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 78 下一页