2024-09-27 17:57:35 发布
网友
str上的冒号是什么意思?我在Python2.7上发现语法错误。是Python3吗?我怎么用?
class TextToSpeech: CHUNK = 1024 def __init__(self, words_pron_dict:str = 'cmudict-0.7b.txt'): self._l = {} self._load_words(words_pron_dict)
这是一个类型注释:https://docs.python.org/3/library/typing.html
你应该可以移除它。
这是一个类型注释:https://docs.python.org/3/library/typing.html
你应该可以移除它。
相关问题 更多 >
编程相关推荐