2024年10月12日 星期六

[Python] name_list.reverse() and name_list[::-1]

(1) 方法1: name_list.reverse()
(2) 方法2: 使用 slice 切片 name_list[::-1]
.
# Example 1:
python3
>>>
>>> cars = ['Honda', 'BMW', 'Toyota', 'Ford']
>>> cars
['Honda', 'BMW', 'Toyota', 'Ford']
>>> cars[::-1]
['BMW', 'Ford', 'Toyota', 'BMW', 'Honda']
>>> cars.reverse()
>>> cars
['Ford', 'Toyota', 'BMW', 'Honda']
.
.
# Example 2:
>>> nums1 = [5, 3, 9, 2]
>>> nums1
[5, 3, 9, 2]
>>> nums2 = nums1[::-1]
>>> nums2
[2, 9, 3, 5]
>>> nums1.reverse()
>>> nums1
[2, 9, 3, 5]
.

2024年10月5日 星期六

Free ChatGP 3.5 for (TOEIC) English Speaking Practice / 免費 ChatGP 3.5 練習(多益)英語口說

.
Free ChatGP 3.5 for (TOEIC) English Speaking Practice / 免費 ChatGP 3.5 練習(多益)英語口說
.
// --- --- ---
. 簡單三步驟搞定: 
. (1) 將下列 0001、0002 指令貼到 ChatPGT 訊息視窗
. (2) 點選右下角 進階語音
.   
. (3) 開始練習
.   
.
// --- --- ---
Prompt 00001 (第0001指令)
Please remember: I may try to speak Chinese to you. But you can only answer me in English, no Chinese. That’s very important.
Purpose: I mainly use ChatGPT to learn TOEIC English.
Occupation: I am currently a Software Engineering.
English Proficiency: Basic level, so please use simple words when talking to me.
English Training Content: Mainly repetition and answering questions.
When I want to practice repetition: I will tell you, "I want to practice repetition." Please read the sentence for me to repeat after you.
When I want to practice answering questions: I will tell you, "I want to practice answering questions." Please ask me questions randomly from my specified sentences.
.
// --- --- ---
Prompt 00002 (第0002指令)
When I practice TOEIC English, I hope ChatGPT can follow these replies: You need to read the sentence one by one for me to repeat or answering questions. Response Language: Remember, please always reply in English. Even I speak in Chinese, you still need to response me in English. 
That’s very important.
.
Shadowing Practice Steps: 
First, I'll give you some sentences, and you'll read them to me in order. You need to read the following sentences one by one. 
Second, I'll shadow each sentence after you. 
Third, you'll tell me which word I pronounced unclearly, and ask me to repeat the word again until I say it right. If I keep saying the word wrong, please keep asking me to repeat until I say the word correctly. 
Fourth, read the next sentence for me so I can repeat after you. 
Fifth, after I finish all the sentences. Please show me a table of my score of my fluency and accuracy for each sentence. Remember, I need a table of my scores. 
.
Answering Questions Practice Steps: 
First, I'll give you three questions, and you'll ask me those questions randomly. You need to ask the questions I provided one by one. 
Second, I'll try to answer the question you ask me.  
Third, Very important step here. Do make sure you follow. you need to ask me one further question based on the answer I said. 
Fourth, ask me the next questions. 
Fifth, after I finish answering all three questions. Please show me a table of my score of my “Pronunciation” and “The content”
.
.
.
// --- --- ---
Prompt 00003 (第00003指令)
如果你想練習影子跟讀 [請自行輸入想練習問答的句子]

Here are the sentences I want to practice shadowing one by one.

I discovered BTW Radio over 20 years ago and have been a regular listener of your evening programming for at least a decade. I just want to say how much I enjoy your newest offering. I’ve been interested by many of the authors that have been featured on the show so far, but last evening’s guest was especially interesting. I remember James from when he was a little boy. I worked with his parents when they lived in New York, and I recall seeing James in his parents’ studio most days after he got out of school. I was surprised to learn that he has written about his childhood, and I look forward to reading his new book. 

Thank you for the excellent program. 
.
.
// --- --- ---
Prompt 00004 (第00004指令)
如果你想練習問答 [請自行輸入想練習問答的句子]
Here are the sentences I want to practice questions answering.

Bremen, Richard [9:34 A.M.]: 
I just got off the phone with them. It looks like everything will arrive on Monday afternoon, so we 
could actually begin the job on Tuesday. 
 
Vega, Camila [9:35 A.M.]: 
That’s good news. I’ll call the client this morning and let them know. 
 
Bremen, Richard [9:35 A.M.]: 
You should also remind them that we will begin working on the guestrooms first and work our way 
toward the lobby and first-floor public areas last. We’ll send a large crew so the work can be 
finished quickly. 
 
Kato, Yuri [9:36 A.M.]: 
How long do you think it will take to complete the job? 
 
Bremen, Richard [9:37 A.M.]: 
We can probably be finished by Friday, as we originally planned. 
 
Kato, Yuri [9:38 A.M.]: 
Excellent. They’re a new client with several locations and a high profile in the business community, 
so I want things to go smoothly. I’m sure there will be more work with the in the long run if all goes 
well. 
.