Latest web development tutorials

Python comprend des exercices 74

Python 100 Li Python 100 Li

Titre: La connexion de deux listes.

Analyse du programme: Aucun.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    arr1 = (3,12,8,9,11)
    ptr = list(arr1)
    print ptr
    ptr.sort()
    print ptr
[3, 12, 8, 9, 11]
[3, 8, 9, 11, 12]

Python 100 Li Python 100 Li