跳至主要內容
计算机文本编码,解码,字典简介

计算机文本编码,解码,字典简介

一个文件不是文本,就是二进制文件。

计算机文本的编码经过 “GUI控制器” 展示为可见字符。

  • 计算机编码/计算机编码:0 与 1 形成的不定长组合。
  • 可见字符:弘,の,!、e

每一种编码和解码方式都需要依照字典。

平时我们说 一个文件使用了某种编码,就是在说 这个文件应该使用某本字典来解读是正确的。


Hirsun大约 36 分钟tech
Matplotlib DataV Std.

Matplotlib DataV Std.

作者:韩佳明Hirsun

统一框架

medals = pd.read_csv('medals_by_country_2016.csv', index_col=0)

import matplotlib.pyplot as plt

# 第一张图

#拆包
fig, ax = plt.subplots()

ax.set_xlabel("Time (months)")
ax.set_ylabel("Average temperature (Fahrenheit degrees)")
ax.set_title("Weather in Seattle")

plt.show()

fig.set_size_inches([5, 3]) # x 和 y
fig.savefig("gold_medals.png", dpi=300)

# Clear the distplot
plt.clf()

# 第二张图
fig, ax = plt.subplots()
ax.set(xlabel="Tuition 2013-14", ylabel="Distribution", xlim=(0, 50000), title="2013-14 Tuition and Fees Distribution")
plt.show()

fig.savefig("gold_medals.svg")

Hirsun大约 19 分钟tech