Latest web development tutorials

Python obejmuje ćwiczenia 74

Python 100 Li Python 100 Li

Tytuł: Łączenie dwóch list.

Program Analysis: Brak.

Kod źródłowy:

#!/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