ZhangZhihui's Blog |
|
||
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,... 阅读全文
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 阅读全文
摘要:
You can translate this fragment into Python by arranging the choices and functions into a dictionary: actions = {0: make_computer_move, 1: make_human_ 阅读全文
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']) 阅读全文
摘要:
RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until ex 阅读全文
摘要:
import base64 from datetime import date from io import BytesIO from matplotlib.ticker import MaxNLocator def fig_to_html(fig): """ Convert a matplotli 阅读全文
摘要:
fig_width = fig.get_figwidth() xmargin_ratio, ymargin_ratio = ax.margins() xmargin = fig_width * xmargin_ratio 阅读全文
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'] 阅读全文
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 阅读全文
2022年1月30日
摘要:
fig1.set_figwidth(12) fig1.set_figheight(6) 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |