Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

Đối với usecase cụ thể này, bạn có thể làm điều gì đó như thế này:

Show
print(*range(10))

Và để cập nhật từng ký tự trên dòng, bạn sẽ cần sử dụng

import time
maxlen = 0
for i in range(12,-1,-1):
  if len(str(i))>maxlen:
    maxlen = len(str(i))
  print(f'\r{str(i): <{maxlen}}',end = '')
  time.sleep(2)
print('')
3 hoặc ký tự trả về, trả lại vị trí của con trỏ cho đầu dòng. Tuy nhiên, bạn cần chắc chắn rằng bạn đếm trong độ dài của các chuỗi bạn đang in, nếu không bạn sẽ chỉ ghi đè lên một phần của chuỗi. Một giải pháp chứng minh đầy đủ sẽ là:

import time
maxlen = 0
for i in range(12,-1,-1):
  if len(str(i))>maxlen:
    maxlen = len(str(i))
  print(f'\r{str(i): <{maxlen}}',end = '')
  time.sleep(2)
print('')

Phần

import time
maxlen = 0
for i in range(12,-1,-1):
  if len(str(i))>maxlen:
    maxlen = len(str(i))
  print(f'\r{str(i): <{maxlen}}',end = '')
  time.sleep(2)
print('')
4 được thêm vào để bạn có thể xem thay đổi.
import time
maxlen = 0
for i in range(12,-1,-1):
  if len(str(i))>maxlen:
    maxlen = len(str(i))
  print(f'\r{str(i): <{maxlen}}',end = '')
  time.sleep(2)
print('')
5 Tính toán chuỗi độ dài tối đa bạn sẽ in và định dạng chuỗi phù hợp. Lưu ý: Tôi đã sử dụng F'Strings, do đó nó sẽ chỉ hoạt động cho Python 3.x

Cải thiện bài viết

Lưu bài viết

  • Đọc
  • Bàn luận
  • Cải thiện bài viết

    Lưu bài viết

    Đọcgo to the next line automatically. 
     

    Bàn luận

    Python3

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    7
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    8
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    9

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    7
    geeks
    geeksforgeeks
    2
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    9

    Nói chung, mọi người chuyển từ C/C ++ sang Python tự hỏi làm thế nào để in hai hoặc nhiều biến hoặc câu lệnh mà không đi vào một dòng mới trong Python. Vì hàm python print () theo mặc định kết thúc bằng một dòng mới. Python có định dạng được xác định trước nếu bạn sử dụng in (a_varable) thì nó sẽ tự động đi đến dòng tiếp theo. & Nbsp; & nbsp;

    geeks
    geeksforgeeks

    Ví dụ: & nbsp;
     

    Sẽ dẫn đến điều này: & nbsp; 

    Input : print("geeks") print("geeksforgeeks")
    Output : geeks geeksforgeeks
    
    Input : a = [1, 2, 3, 4]
    Output : 1 2 3 4 

    Nhưng đôi khi điều đó có thể xảy ra khi chúng tôi không muốn đi đến dòng tiếp theo nhưng muốn in trên cùng một dòng. Vì vậy, những gì chúng ta có thể làm? & Nbsp; & nbsp;
     

    Ví dụ: & nbsp;

    Giải pháp được thảo luận ở đây hoàn toàn phụ thuộc vào phiên bản Python bạn đang sử dụng. & NBSP; & NBSP;

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    7
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    8
    geeks
    geeksforgeeks
    7

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    7
    geeks
    geeksforgeeks
    2
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    9

    In mà không có dòng mới trong Python 2.x

    Python

    geeks geeksforgeeks
    1 2 3 4
    0
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    geeks geeksforgeeks
    1 2 3 4
    2

    Output: 

    geeks geeksforgeeks
    1 2 3 4

    Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 2Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 3 Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 4Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 5Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 6Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 7Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 6Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 9Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 6geeks geeksforgeeks 1 2 3 41geeks geeksforgeeks 1 2 3 42

    python3

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    7
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    8
    geeks geeksforgeeks
    1 2 3 4
    6
    Input : print("geeks") print("geeksforgeeks")
    Output : geeks geeksforgeeks
    
    Input : a = [1, 2, 3, 4]
    Output : 1 2 3 4 
    3
    geeks geeksforgeeks
    1 2 3 4
    8
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    9

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    7
    geeks
    geeksforgeeks
    2
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    9

    In mà không có dòng mới trong Python 2.x

    Python

    geeks geeksforgeeks
    1 2 3 4
    0
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6
    fhand = open('rainbow.txt')
    for line in fhand:
      print(line)
    
    4
    Input : print("geeks") print("geeksforgeeks")
    Output : geeks geeksforgeeks
    
    Input : a = [1, 2, 3, 4]
    Output : 1 2 3 4 
    3
    geeks geeksforgeeks
    1 2 3 4
    8
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    9

    Output: 

    geeks geeksforgeeks
    1 2 3 4

    Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 2Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 3 Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 4Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 5Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 6Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 7Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 6Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 9Input : print("geeks") print("geeksforgeeks") Output : geeks geeksforgeeks Input : a = [1, 2, 3, 4] Output : 1 2 3 4 6geeks geeksforgeeks 1 2 3 41geeks geeksforgeeks 1 2 3 42

    Python3

    Output:

    1 2 3 4 5 6

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Hàm

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6 là một hàm quan trọng trong Python, vì nó được sử dụng để chuyển hướng đầu ra đến đầu cuối. Đầu ra cũng có thể được chuyển hướng đến một tệp.

    Chức năng

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6, theo mặc định, in trên một dòng mới mỗi lần. Điều này là do định nghĩa của
    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    0 trong tài liệu Python.

    Tại sao chức năng import time maxlen = 0 for i in range(12,-1,-1): if len(str(i))>maxlen: maxlen = len(str(i)) print(f'\r{str(i): <{maxlen}}',end = '') time.sleep(2) print('') 6 của Python được in trên một dòng mới theo mặc định?

    Trong đoạn trích bên dưới, chúng ta có thể thấy rằng theo mặc định, giá trị của

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    2 là
    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    3. Điều này có nghĩa là mọi câu lệnh in sẽ kết thúc với
    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    3. Lưu ý rằng
    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    3 đại diện cho một ký tự dòng mới.

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?
    Nguồn: Tài liệu Python.

    Hãy xem một ví dụ về chức năng in.

    Ví dụ về mã:

    # using Print with default settings
    
    print("This will be printed")
    print("in separate lines")

    Output::

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Trong ví dụ trên, các dòng sẽ được in riêng do định nghĩa:

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    6.

    Đôi khi, chúng ta cần in các chuỗi trên cùng một dòng. Điều này đặc biệt hữu ích khi chúng tôi đang đọc các tệp trong Python. Khi chúng tôi đọc các tệp, chúng tôi nhận được một khoảng trống giữa các dòng theo mặc định.

    Hãy xem một ví dụ. Chúng tôi có một tệp có tên

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    7 với nội dung được hiển thị bên dưới:

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?
    Nội dung của tập tin Rainbow.txt

    Code:

    fhand = open('rainbow.txt')
    for line in fhand:
      print(line)
    

    Trong mã trên, chúng tôi đã sử dụng một trình xử lý tệp

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    8 để truy cập tệp. Tiếp theo, chúng tôi lặp lại thông qua các dòng bằng cách sử dụng vòng lặp
    geeks geeksforgeeks
    1 2 3 4
    3.

    Output:

    Khi chúng ta in nội dung, kết quả như thế này:

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Dòng trống thêm là do sự hiện diện của

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    3 ở cuối mỗi dòng trong tệp di chuyển con trỏ sang dòng tiếp theo. Cuối cùng, dòng trống được thêm vào do hành vi của chức năng
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6 như được thảo luận trong phần cuối.

    Giả sử chúng tôi muốn loại bỏ những thứ này. Để làm điều đó, chúng ta có thể thực hiện một số thay đổi. Đối với điều này, chúng ta cần thay đổi hành vi mặc định của

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6. Chúng ta sẽ xem làm thế nào để làm điều đó một cách chi tiết trong các phần sắp tới.

    Tùy chọn số 1 - Cách sửa đổi giá trị của # Customizing the value of 'end' print("This is string 1 same line", end=' ') print("This is string 2 different line") 2 trong hàm import time maxlen = 0 for i in range(12,-1,-1): if len(str(i))>maxlen: maxlen = len(str(i)) print(f'\r{str(i): <{maxlen}}',end = '') time.sleep(2) print('') 6

    Hãy tùy chỉnh giá trị của

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    2 trong hàm
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    6. Chúng tôi sẽ đặt nó thành
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    07 là một không gian.

    Ví dụ về mã:

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    

    Output::

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Trong ví dụ trên, các dòng sẽ được in riêng do định nghĩa:

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    6.

    Đôi khi, chúng ta cần in các chuỗi trên cùng một dòng. Điều này đặc biệt hữu ích khi chúng tôi đang đọc các tệp trong Python. Khi chúng tôi đọc các tệp, chúng tôi nhận được một khoảng trống giữa các dòng theo mặc định.

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    0

    Output::

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Hãy xem một ví dụ. Chúng tôi có một tệp có tên

    # Customizing the value of 'end'
    
    print("This is string 1 same line", end=' ')
    print("This is string 2 different line")
    
    7 với nội dung được hiển thị bên dưới:

    Nội dung của tập tin Rainbow.txt

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    1

    Output:

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Trong mã trên, chúng tôi đã sử dụng một trình xử lý tệp # Customizing the value of 'end' print("This is string 1 same line", end=' ') print("This is string 2 different line") 8 để truy cập tệp. Tiếp theo, chúng tôi lặp lại thông qua các dòng bằng cách sử dụng vòng lặp geeks geeksforgeeks 1 2 3 43.

    Khi chúng ta in nội dung, kết quả như thế này:

    Bạn có thể tìm hiểu thêm về phương pháp

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    11 trong bài đăng trên blog này.

    Quay lại ví dụ in tệp của chúng tôi

    Hãy nhớ rằng, chúng tôi đã thảo luận về một ví dụ in tệp trong đó các dòng bổ sung đang được in:

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Hãy sửa đổi mã một chút bằng cách sử dụng

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    10.

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    2

    Đầu ra

    Đầu tiên, chúng tôi đã loại bỏ khoảng trắng thêm với

    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    10. Trong bước tiếp theo, chúng tôi đã loại bỏ dòng dấu vết một lần nữa với
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    18 và
    import time
    maxlen = 0
    for i in range(12,-1,-1):
      if len(str(i))>maxlen:
        maxlen = len(str(i))
      print(f'\r{str(i): <{maxlen}}',end = '')
      time.sleep(2)
    print('')
    
    19 để có được đầu ra trong một dòng duy nhất.

    Hướng dẫn how do you print only one line in python? - làm cách nào để bạn chỉ in một dòng trong python?

    Gói lên

    Chúng ta đã thấy làm thế nào chúng ta có thể in trong Python mà không cần một dòng mới. Chúng tôi cũng đã thấy làm thế nào chúng tôi có thể in các dòng trong một tệp mà không cần thêm các dòng theo dõi. Tôi hy vọng bạn tìm thấy hướng dẫn này hữu ích.

    Chia sẻ suy nghĩ của bạn với tôi trên Twitter!

    Bạn có thể đọc các bài viết khác của tôi ở đây.



    Học mã miễn phí. Chương trình giảng dạy nguồn mở của Freecodecamp đã giúp hơn 40.000 người có được việc làm với tư cách là nhà phát triển. Bắt đầu