Différences entre les versions de « Utilisateur:Gesine »

De {}
Aller à la navigation Aller à la recherche
 
(3 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
1000011 1100101 1110011 1110100 0100000 1110110 1110010 1100001 1101001 0100000 1101111 1110101 0100000 1100110 1100001 1110101 1111000 0100000 0001101 1110101 1101110 0100000 1101111 1110101 0100000 1111010 1100101 1110010 1101111 0100000 0001101 1000011 1100101 1110011 1110100 0100000 1101110 1101111 1101001 1110010 0100000 1101111 1110101 0100000 1100010 1101100 1100001 1101110 1100011 0100000 0001101 1101100 1100001 1110010 1101101 1100101 1100101 0100000 1100001 110101 1101101 1100101 0100000 1100010 1101001 1100101 1101110 0100000 0001101 1101100 1100101 0100000 1100011 1101111 1100100 1100101 0100000 1100010 1101001 1101110 1100001 1101001 1110010 1100101 0100000 0001101 1110100 1101111 1110101 1110100  0100000 1100101 1110011 1110100 0100000 1110100 1110010 1100101 1110011 0100000 1100011 1101100 1100001 1101001 1110010 1100101
+
01000011 00100111 01100101 01110011 01110100 00100000 01110110 01110010 01100001 01101001 00100000 01101111 01110101 00100000 01100110 01100001 01110101 01111000 00100000 00001010 01110101 01101110 00100000 01101111 01110101 00100000 01111010 01100101 01110010 01101111 00100000 00001010 01000011 00100111 01100101 01110011 01110100 00100000 01101110 01101111 01101001 01110010 00100000 01101111 01110101 00100000 01100010 01101100 01100001 01101110 01100011 00100000 00001010 01101100 01100001 01110010 01101101 01100101 01100101 00100000 01100001 01101001 01101101 01100101 00100000 01100010 01101001 01100101 01101110 00100000 00001010 01101100 01100101 00100000 01100011 01101111 01100100 01100101 00100000 01100010 01101001 01101110 01100001 01101001 01110010 01100101 00100000 00001010 01110100 01101111 01110101 01110100 00100000 01100101 01110011 01110100 00100000 01110100 01110010 01100101 01110011 00100000 01100011 01101100 01100001 01101001 01110010 01100101
  
  
Ligne 21 : Ligne 21 :
 
- rajoute aouuuu quand il y a a lettre a
 
- rajoute aouuuu quand il y a a lettre a
 
- rajoute grrrrrrrrrr quand il y a la lettre g
 
- rajoute grrrrrrrrrr quand il y a la lettre g
 +
 +
<syntaxhighlight lang="python">
 +
#!python
 +
# -*- coding: utf-8 -*-
 +
 +
print("Qui est-ce?")
 +
 +
 +
with open('poetry','r') as lecture:
 +
    poeme = lecture.read()
 +
   
 +
 +
poeme_lines = poeme.splitlines()
 +
 +
reponse = input()
 +
 +
 +
 +
for poeme_line in poeme_lines:
 +
    words = poeme_line.split(' ')
 +
    new_line = ""
 +
    for word in words:
 +
       
 +
        new_word = ""
 +
        for letter in word:
 +
            if letter == "a":
 +
                new_word = new_word + "aaouuuuu"
 +
            elif letter == "g":
 +
                new_word = new_word + "grrrrrr"
 +
            else:
 +
                new_word = new_word+letter
 +
       
 +
        new_line = new_line + " " + new_word
 +
       
 +
    print(new_line)
 +
 +
print("- par "+reponse)
 +
<syntaxhighlight>
 +
 +
<syntaxhighlight lang="html">
 +
 +
<!DOCTYPE html>
 +
<html>
 +
    <head>
 +
<link rel="stylesheet" href="styles/cover.css">
 +
</head>
 +
<body>
 +
<section class="page">
 +
<section class="sides left">
 +
 +
 +
</section>
 +
<section class="middle left">
 +
<img src="images/instructions.jpg">
 +
</section>
 +
<section class="middle right">
 +
<div class="poeme">
 +
<p>Les editions</p>
 +
<p>"Le Canape"</p>
 +
<p>m'avaient donne</p>
 +
<p>une mission :</p>
 +
<p>un grand roman</p>
 +
<p>transformiste.</p>
 +
<p>Cest vrai ou faux</p>
 +
<p>un ou zero </p>
 +
<p>Cest noir ou blanc </p>
 +
<p>l'armee aime bien </p>
 +
<p>le code binaire</p>
 +
<p>tout est tres claire</p>
 +
<p>l'ordinateur</p>
 +
<p>Circuits Immenses</p>
 +
<p>Zeros et uns</p>
 +
<p>Rythment le cod(e).</p>
 +
<p>Repetition,</p>
 +
<p>Zeros et uns</p>
 +
<p>Saut a la ligne,</p>
 +
<p>C'est un secret.</p>
 +
<p>Écrire à l'ordinateur,</p>
 +
<p>ou à la main ?</p>
 +
<p>Écrire sur le passé,</p>
 +
<p>ou sur demain ?</p>
 +
<p>Écrire des mots,</p>
 +
<p>ou un poème ?</p>
 +
<p>Écrire sur l'amour,</p>
 +
<p>ou sur la haine ?</p>
 +
<p>Plus de points</p>
 +
<p>d’interrogation,</p>
 +
<p>écrivez juste</p>
 +
<p>une assertion !</p>
 +
</div>
 +
 +
 +
</section>
 +
 +
</section>
 +
</body>
 +
 +
 +
</html>
 +
<syntaxhighlight>
 +
 +
<syntaxhighlight lang="css">
 +
@font-face {
 +
  font-family:'mono';
 +
  src: url('typos/IBMPlexMono-Medium.ttf') format('truetype');
 +
  font-weight: normal;
 +
  font-style: normal;
 +
}
 +
 +
@font-face {
 +
  font-family:'mono';
 +
  src: url('typos/IBMPlexMono-Bold.ttf') format('truetype');
 +
  font-weight: bold;
 +
  font-style: normal;
 +
}
 +
 +
@font-face {
 +
  font-family:'mono';
 +
  src: url('typos/IBMPlexMono-Italic.ttf') format('truetype');
 +
  font-weight: normal;
 +
  font-style: italic;
 +
}
 +
 +
@font-face {
 +
  font-family:'swift';
 +
  src: url('../typos/Swift-04-Regular.otf') format('truetype');
 +
  font-weight: normal;
 +
  font-style: normal;
 +
}
 +
 +
@font-face {
 +
  font-family:'swift';
 +
  src: url('typos/Swift-07-Bold.otf') format('truetype');
 +
  font-weight: bold;
 +
  font-style: normal;
 +
}
 +
 +
@font-face {
 +
  font-family:'swift';
 +
  src: url('typos/Swift-04-RegularItalic.otf') format('truetype');
 +
  font-weight: normal;
 +
  font-style: italic;
 +
}
 +
 +
@font-face {
 +
  font-family:'univers';
 +
  src: url('typos/UniversLTStd.otf') format('truetype');
 +
  font-weight: normal;
 +
  font-style: normal;
 +
}
 +
 +
@font-face {
 +
  font-family:'univers';
 +
  src: url('typos/UniversLTStd-Bold.otf') format('truetype');
 +
  font-weight: bold;
 +
  font-style: normal;
 +
}
 +
 +
 +
 +
 +
html, body{
 +
margin: 0;
 +
padding: 0;
 +
}
 +
 +
p{
 +
margin: 0;
 +
font-size: 14px;
 +
font-family:swift;
 +
text-align: center;
 +
 +
 +
}
 +
 +
 +
 +
section.page{
 +
width: 310mm;
 +
height: 148mm;
 +
position: relative;
 +
 +
}
 +
section.sides{
 +
width: 50mm;
 +
height: 148mm;
 +
position: absolute;
 +
top:0;
 +
}
 +
section.sides.left{
 +
left: 0;
 +
 +
}
 +
section.sides.right{
 +
right: 0;
 +
}
 +
section.middle{
 +
width: 210mm;
 +
height: 148mm;
 +
left: 50mm;
 +
position:absolute;
 +
}
 +
section.middle.left{
 +
width: 105mm;
 +
height: 148mm;
 +
left: 50mm;
 +
position: absolute;
 +
}
 +
section.middle.right{
 +
width: 105mm;
 +
height: 148mm;
 +
left: 155mm;
 +
position: absolute;
 +
}
 +
img{
 +
width: 105mm;
 +
height: 148mm;
 +
}
 +
 +
@media print{
 +
section.page{
 +
border: 0;
 +
}
 +
@page{
 +
size: 310mm 148mm;
 +
}
 +
}
 +
<syntaxhighlight>

Version actuelle datée du 26 décembre 2019 à 12:40

01000011 00100111 01100101 01110011 01110100 00100000 01110110 01110010 01100001 01101001 00100000 01101111 01110101 00100000 01100110 01100001 01110101 01111000 00100000 00001010 01110101 01101110 00100000 01101111 01110101 00100000 01111010 01100101 01110010 01101111 00100000 00001010 01000011 00100111 01100101 01110011 01110100 00100000 01101110 01101111 01101001 01110010 00100000 01101111 01110101 00100000 01100010 01101100 01100001 01101110 01100011 00100000 00001010 01101100 01100001 01110010 01101101 01100101 01100101 00100000 01100001 01101001 01101101 01100101 00100000 01100010 01101001 01100101 01101110 00100000 00001010 01101100 01100101 00100000 01100011 01101111 01100100 01100101 00100000 01100010 01101001 01101110 01100001 01101001 01110010 01100101 00100000 00001010 01110100 01101111 01110101 01110100 00100000 01100101 01110011 01110100 00100000 01110100 01110010 01100101 01110011 00100000 01100011 01101100 01100001 01101001 01110010 01100101


Programme:

remplacer tout les 'o' par 0 et tout les 'i' par 1


if input est le mot de passe ("binaire"), affiche le poeme

  --ordinateur: "Mot de passe?"
  --utilisateur: "Binaire"
  --ordinateur: print(poem)


programme de poète loup garou de Violette

Un programme qui

- demande le nom de l'utilisateur qui sera enregistré comme nom de poète - rajoute aouuuu quand il y a a lettre a - rajoute grrrrrrrrrr quand il y a la lettre g

<syntaxhighlight lang="python">

  1. !python
  2. -*- coding: utf-8 -*-

print("Qui est-ce?")


with open('poetry','r') as lecture:

   poeme = lecture.read()
   

poeme_lines = poeme.splitlines()

reponse = input()


for poeme_line in poeme_lines:

   words = poeme_line.split(' ')
   new_line = ""
   for word in words:
       
       new_word = ""
       for letter in word:
           if letter == "a":
               new_word = new_word + "aaouuuuu"
           elif letter == "g":
               new_word = new_word + "grrrrrr"
           else:
               new_word = new_word+letter
       
       new_line = new_line + " " + new_word
       
   print(new_line)

print("- par "+reponse) <syntaxhighlight>

<syntaxhighlight lang="html">

<!DOCTYPE html> <html>

   <head>

<link rel="stylesheet" href="styles/cover.css"> </head> <body> <section class="page"> <section class="sides left">


</section> <section class="middle left"> <img src="images/instructions.jpg"> </section> <section class="middle right">

Les editions

"Le Canape"

m'avaient donne

une mission :

un grand roman

transformiste.

Cest vrai ou faux

un ou zero

Cest noir ou blanc

l'armee aime bien

le code binaire

tout est tres claire

l'ordinateur

Circuits Immenses

Zeros et uns

Rythment le cod(e).

Repetition,

Zeros et uns

Saut a la ligne,

C'est un secret.

Écrire à l'ordinateur,

ou à la main ?

Écrire sur le passé,

ou sur demain ?

Écrire des mots,

ou un poème ?

Écrire sur l'amour,

ou sur la haine ?

Plus de points

d’interrogation,

écrivez juste

une assertion !


</section>

</section> </body>


</html> <syntaxhighlight>

<syntaxhighlight lang="css"> @font-face {

 font-family:'mono';
 src: url('typos/IBMPlexMono-Medium.ttf') format('truetype');
 font-weight: normal;
 font-style: normal;

}

@font-face {

 font-family:'mono';
 src: url('typos/IBMPlexMono-Bold.ttf') format('truetype');
 font-weight: bold;
 font-style: normal;

}

@font-face {

 font-family:'mono';
 src: url('typos/IBMPlexMono-Italic.ttf') format('truetype');
 font-weight: normal;
 font-style: italic;

}

@font-face {

 font-family:'swift';
 src: url('../typos/Swift-04-Regular.otf') format('truetype');
 font-weight: normal;
 font-style: normal;

}

@font-face {

 font-family:'swift';
 src: url('typos/Swift-07-Bold.otf') format('truetype');
 font-weight: bold;
 font-style: normal;

}

@font-face {

 font-family:'swift';
 src: url('typos/Swift-04-RegularItalic.otf') format('truetype');
 font-weight: normal;
 font-style: italic;

}

@font-face {

 font-family:'univers';
 src: url('typos/UniversLTStd.otf') format('truetype');
 font-weight: normal;
 font-style: normal;

}

@font-face {

 font-family:'univers';
 src: url('typos/UniversLTStd-Bold.otf') format('truetype');
 font-weight: bold;
 font-style: normal;

}



html, body{ margin: 0; padding: 0; }

p{ margin: 0; font-size: 14px; font-family:swift; text-align: center;


}


section.page{ width: 310mm; height: 148mm; position: relative;

} section.sides{ width: 50mm; height: 148mm; position: absolute; top:0; } section.sides.left{ left: 0;

} section.sides.right{ right: 0; } section.middle{ width: 210mm; height: 148mm; left: 50mm; position:absolute; } section.middle.left{ width: 105mm; height: 148mm; left: 50mm; position: absolute; } section.middle.right{ width: 105mm; height: 148mm; left: 155mm; position: absolute; } img{ width: 105mm; height: 148mm; }

@media print{ section.page{ border: 0; } @page{ size: 310mm 148mm; } } <syntaxhighlight>