Latest web development tutorials

Python meliputi latihan 86

Python 100 Li Python 100 Li

Judul: dua string linker.

Analisis Program: Tidak ada.

Source Code:

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

if __name__ == '__main__':
    a = "acegikm"
    b = "bdfhjlnpq"

    # 连接字符串
    c = a + b
    print c

Contoh di atas output:

acegikmbdfhjlnpq

Python 100 Li Python 100 Li