擅长:python、mysql、java
<p>在Python中定义数据类型是不可能的,因为它是<a href="https://pythonconquerstheuniverse.wordpress.com/2009/10/03/static-vs-dynamic-typing-of-programming-languages/" rel="nofollow noreferrer">strongly typed dynamic language</a>,<strong>但是可以添加类型提示。</em></strong></p>
<pre><code>link: str
</code></pre>
<p>这是python中hint类型的示例。
你也可以<a href="https://stackoverflow.com/questions/32557920/what-are-type-hints-in-python-3-5">check-out.</a></p>