So now that our code has worked, let's figure out what's actually going on with
this program. Now, the first thing that strikes
me is this first line of code, which
is from twilio.rest import TwilioRestClient. Now thus far,
what we've been doing is statements like this,
where we say import some filename. Like in
this case, import turtle, but here we have
this new word called from. So here's a task for you, we want you to find out
what this Python keyword from means? You can enter your responses in this box.
الآن وبعد عمل تعليمتنا البرمجية بطريقة صحيحة، لنتعرف على ما يجري بالفعل في
هذا البرنامج. أول ما لفت نظري كان
هذا السطر الأول في التعليمة البرمجية، وهو
،from twilio.rest import TwilioRestClient. حتى الآن
،ما قمنا به هو إنشاء عبارات مثل هذه العبارة
حيث نضع كلمة import ثم اسم الملف. كما في هذه
الحالة، import turtle، لكن لدينا هنا
هذه الكلمة الجديدة وهي from. لذا توجد مهمة لتقوم بها، فنريد منك اكتشاف
.ما الذي تعنيه كلمة Python الأساسية هذه "from"؟ يمكنك إدخال إجاباتك في هذا المربع
Entonces ahora que nuestro código ha funcionado, veamos que es lo que realmente sucede
con este programa. Ahora, lo primero que me llama la atención
es esta primera línea de código, que
es from twilio.rest import TwilioRestClient Bien, hasta ahora,
lo que hemos estado haciendo son declaraciones como esta,
donde decimos importar algún nombre de archivo. Como en
este caso, import turtle, sin embargo aquí tenemos
esta nueva palabra llamada from (desde). Aquí les dejo esta tarea, queremos que descubran
lo que significa la palabra clave from de Python. Puede escribir sus respuestas en esta casilla.
コードが動いたので
プログラムがどうなっているか確認しましょう
まず目に留まるのは
コードの最初の行にある
from twilio.rest import TwilionRestClientです
これまではimportのあとにファイル名を入れていました
import turtleのような形です
でも今回はfromという語があります
ここで課題です
Pythonの予約語であるfromの意味を調べてください
Agora que o código funcionou, vamos descobrir o que acontece
com este programa. A primeira coisa a me chamar atenção
é a primeira linha de código:
from twilio.rest import TwilioRestClient. Até agora,
criamos instruções como esta
para importar algum nome de arquivo. Como
neste caso, import turtle, mas temos aqui esta
nova palavra chamada from. Sua tarefa é descobrir
o que significa essa palavra-chave Python from. Insira suas respostas nesta caixa.
那么既然我们的代码成功了 让我们思考一下这个程序究竟发生了
什么 现在 第一个触动到我的是
第一行代码 其
为 from twilio.rest import TwilioRestClient 目前为止
我们一直做的是这样的代码语句
我们说导入某个文件名 比如这个
例子 import turtle 但是我们现在
有了这个新词叫 from 所以这里给你一个任务 我们想你找出
这个 Python 关键字 from 的意思? 你可以在这个方框中输入你的答案
那麼既然我們的程式碼成功了,讓我們思考一下,這個程式究竟做了什麼?
首先, 第一個我想知道的是
第一行程式碼, 它是
"from twilio.rest import TwilioRestClient",
目前為止,我們曾經用過的程式碼
如果用到導入,我們會用"import" 再加上某個檔案名,
例如" import turtle"。 但是我們現在
有了這個新詞叫 "from" ,所以這裡給你一個任務: 我們想你找出
這個 Python 關鍵字 "from" 的意思? 你可以在這個方框中輸入你的答案。