Comparison of the data type JS and PYTHON

JavaScript data types

6 kinds of data types:

  • string
  • number
  • boolean
  • object
  • function
  • symbol

Three kinds of object types:

  • Object
  • Date
  • Array

2 does not contain any type of data values:

  • null
  • undefined

Python3 data types

6 kinds of data types:

  • Number (Digital)
  • String (String)
  • List (list)
  • Tuple (tuple)
  • Set (collection)
  • Dictionary (dictionary)

 

Guess you like

Origin www.cnblogs.com/hzjdpawn/p/12581426.html