Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":9007,"date":"2015-04-05T14:19:38","date_gmt":"2015-04-05T19:19:38","guid":{"rendered":"https:\/\/lizethacosta.withknown.com\/2015\/mastery-14"},"modified":"2015-04-05T14:19:38","modified_gmt":"2015-04-05T19:19:38","slug":"mastery-14","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery-14\/","title":{"rendered":"Mastery 14"},"content":{"rendered":"
\n

Crear y usar módulos de Python<\/h3>\n

Los módulos de Python son archivos predeterminados con ciertas acciones que nos facilitan mucho el trabajo. En lugar de definir las mimas funciones para distintos programas, se pueden crear módulos que pueden ser llamados en varios programas.<\/p>\n

Vamos a crear un módulo, empecemos con algo sencillo: <\/p>\n

\"\"\"\"<\/p>\n

Bien, lo primero es crear un programa con la función que queremos hacer, en este caso, sumar.<\/p>\n

Ya que tenemos nuestra función creada, guardamos el archivo en la carpeta del sistema de Python, ahí es donde el programa buscará el módulo mas adelante. <\/p>\n

Ya que tenemos esto hecho y guardado en el lugar correcto, vamos a crear otro programa para corroborar que nuestra función se ejecute correctamente. <\/p>\n

En nuestro nuevo programa ( y en cualquier otro que creemos), tenemos que importar el módulo nuevo.<\/p>\n

Esto lo haremos la principio del mismo con la palabra ” import ” seguido del nombre del archivo de python donde creamos la función (ahora un módulo).<\/p>\n

Desarrollamos nuestro programa y en el momento en el que deseemos utilizar nuestra función debemos escribir el nombre del módulo, punto, el nombre de nuestra función y en paréntesis las variables que vamos cambiar.<\/p>\n

Nombre del programa + . + nombre de la función + (variable1,variable2)<\/p>\n

 <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Crear y usar módulos de PythonLos módulos de Python son archivos predeterminados con ciertas acciones que nos facilitan mucho el trabajo. En lugar de definir las mimas funciones para distintos programas, se pueden crear mó… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":127,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,25],"tags":[],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9007"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/127"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=9007"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9007\/revisions"}],"predecessor-version":[{"id":9216,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9007\/revisions\/9216"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=9007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=9007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=9007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}