{"id":1315,"date":"2022-12-11T07:23:38","date_gmt":"2022-12-11T06:23:38","guid":{"rendered":"http:\/\/lesmrdtrucs.mataf35400.fr\/?page_id=1315"},"modified":"2022-12-17T16:16:46","modified_gmt":"2022-12-17T15:16:46","slug":"python","status":"publish","type":"page","link":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/python\/","title":{"rendered":"Python\u200b"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1315\" class=\"elementor elementor-1315\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-7a1ddab6 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7a1ddab6\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-504d8159\" data-id=\"504d8159\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6bd77e2b elementor-widget elementor-widget-text-editor\" data-id=\"6bd77e2b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div>\n<h2>Les Mrd Pense-b\u00eate<\/h2>\n<h3>Rendre le fichier lancement.sh ex\u00e9cutable<\/h3>\n<p>Avant de pouvoir utiliser ce fichier shell, il faut le rendre ex\u00e9cutable :<\/p>\n<p style=\"padding-left: 40px;\"><span style=\"color: #0000ff;\"><em>chmod 755 lancement.sh<\/em><\/span><\/p>\n<h3>Lancer le script ex\u00e9cut\u00e9 normalement au boot<\/h3>\n<p style=\"padding-left: 40px;\"><span style=\"color: #0000ff;\"><em>sh lancement.sh<\/em><\/span><\/p>\n<\/div>\n<div>\n<h3>Lancer un programme Python avec Python (pour l&rsquo;\u00e9diter, par exemple)<\/h3>\n<\/div>\n<div style=\"padding-left: 40px;\"><span style=\"color: #0000ff;\"><em>python blink01.py<\/em><\/span><\/div>\n<div>&nbsp;<\/div>\n<div>\n<h3>Arr\u00eater un programme qui a \u00e9t\u00e9 lanc\u00e9 au d\u00e9marrage (il y a mieux !)<br><\/h3>\n<\/div>\n<ul>\n<li>Dans la console: <span style=\"color: #0000ff;\"><em>ps -ef<\/em><\/span><\/li>\n<li>copier le tout, et le coller dans notepad++ afin de pouvoir retrouver le prog \u00e0 arr\u00eater facilement<\/li>\n<li>Dans la console: <span style=\"color: #0000ff;\"><em>sudo kill xxx<\/em><\/span> (le PID du prog \u00e0 arr\u00eater)<\/li>\n<\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-61aa7157 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"61aa7157\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-346e1196\" data-id=\"346e1196\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-967c8eb elementor-widget elementor-widget-text-editor\" data-id=\"967c8eb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2>Foire aux sites<\/h2>\n<h3>&nbsp;<strong>Apprendre \u00e0 programmer avec Python\/Applications web<\/strong><\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/fr.wikibooks.org\/wiki\/Apprendre_%C3%A0_programmer_avec_Python\/Applications_web#cite_ref-4\" target=\"_blank\" rel=\"noopener\">https:\/\/fr.wikibooks.org\/wiki\/Apprendre_%C3%A0_programmer_avec_Python\/Applications_web#cite_ref-4<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><strong>Open classrooms. Apprenez \u00e0 programmer en Python<\/strong><\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/openclassrooms.com\/courses\/apprenez-a-programmer-en-python\" target=\"_blank\" rel=\"noopener\">https:\/\/openclassrooms.com\/courses\/apprenez-a-programmer-en-python<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><strong>Introduction au langage Python<\/strong><\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"http:\/\/www.jchr.be\/python\/manuel.htm\" target=\"_blank\" rel=\"noopener\">http:\/\/www.jchr.be\/python\/manuel.htm<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><strong>The Python Standard Library<\/strong><\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/docs.python.org\/2\/library\/index.html\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.python.org\/2\/library\/index.html<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><strong>Python et le port GPIO<\/strong><\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"http:\/\/deusyss.developpez.com\/tutoriels\/RaspberryPi\/PythonEtLeGpio\/\" target=\"_blank\" rel=\"noopener\">http:\/\/deusyss.developpez.com\/tutoriels\/RaspberryPi\/PythonEtLeGpio\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Les Mrd Pense-b\u00eate Rendre le fichier lancement.sh ex\u00e9cutable Avant de pouvoir utiliser ce fichier shell, il faut le rendre ex\u00e9cutable : chmod 755 lancement.sh Lancer le script ex\u00e9cut\u00e9 normalement au boot sh lancement.sh Lancer un programme Python avec Python (pour l&rsquo;\u00e9diter, par exemple) python blink01.py &nbsp; Arr\u00eater un programme qui a \u00e9t\u00e9 lanc\u00e9 au d\u00e9marrage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"class_list":["post-1315","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/1315","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1315"}],"version-history":[{"count":13,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/1315\/revisions"}],"predecessor-version":[{"id":1629,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/1315\/revisions\/1629"}],"wp:attachment":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}