Run your first Python program
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- git, python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Mở get-quote.py và kiểm tra dòng 2, sau đó chạy nó bằng Python 3 với lệnh được nêu trong issue. Xác nhận rằng câu trích dẫn được hard-code xuất hiện trong terminal, kiểm tra git status và thực hiện các bước add, commit và push đã được ghi lại để thay đổi tệp được ghi nhận.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Now you're ready to start coding. Let's get familiar with the files in our repo:
README.md: a markdown introduction to this projectget-quote.py: the file where we'll write our Python codequotes.txt: a text file with a list of quotes
Open up get-quote.py and comment out line 2 by removing the # from the beginning of the line. It will look like this:
print("Keep it logically awesome.")
The two spaces (or one tab) in front of the line is important. Python uses whitespace to organize code. This print line is part of the main() function. But more on that in the next step. First, let's try running that Python script.
Use the Python 3 command to run the script. From the command line, type one of the following:
python get-quote.pypython3 get-quote.py
You should see our first quote, the one hard-coded into line 2, printed out in your terminal:
Keep it logically awesome.
Push your changes
You've edited your local code, so you have a more recent version than is stored in this repository. You can check that any time by running: git status
It should show one file modified. Every time we want to send our local changes to GitHub, we need to perform three steps:
- Add the file(s) with changes:
git add get-quote.py - Commit the changes:
git commit -m "Hello World" - Push the changes:
git push
Once you've completed these steps, we'll write some more Python.
- Ngôn ngữ chính
- Python
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·