python基础15:全局输出控制语句、导入库、参数设置
#全部行都能输出 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" #导入库 import numpy as np import pandas as pd import matplotlib.pyplot as plt import time import datetime # rc参数 plt.rcParams['font.family'] = ['SimHei'] # 显示中文windows,也可以改变字体 KaiTi #plt.rcParams['font.sans-serif']=['Simhei'] # 如果说执行后仍然不显示中文,则用上面代码 #plt.rcParams['font.family'] = 'Arial Unicode MS' # 显示中文mac plt.rcParams['axes.unicode_minus'] = False # 显示负号