单项选择题

在Python中,对str类型的字符串调用其()函数进行编码,得到bytes字节串。

A.upper()
B.decode()
C.encode()
D.rstrip()