1、在3.0版本,print 以作为一个函数

    print ("HelloWorld !!!");

2、python的函数定义:

    为  def functionName(functionParams)

    没有返回值定义,其实每个函数都有返回值,如果有return,返回return,如果没有则返回None(python的空值);

    functionParams 不需要表明类型

 3、Python的list类似于as中的Array数组

    list[-1]为list的最后一位

相关文章:

  • 2021-10-01
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2022-01-14
  • 2021-11-15
  • 2021-08-23
相关资源
相似解决方案