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

De {}
Aller à la navigation Aller à la recherche
Ligne 1 : Ligne 1 :
 +
@font-face {
 +
    font-family: cochin;
 +
    src: url('cochin.ttc');
 +
 +
}
 +
 +
*{
 +
    box-sizing:border-box;
 +
}
 +
 +
html, body
 +
{
 +
  font-family:cochin;
 +
  font-size:13pt;
 +
  color: red;
 +
  background: hsl(240, 70%, 90%);
 +
  display: inline;
 +
}
 +
 +
section.page{
 +
  width:15mm;
 +
  height: 200mm;
 +
  border:1px solid black;
 +
  line-height: -600px;
 +
  margin:10px;
 +
  padding:5mm;
 +
 +
}
 +
 +
section.page.first
 +
{
 +
 +
  background: hsla(0, 100%, 50%, 0.5);
 +
  position: relative;
 +
  top: -3000px;
 +
  bottom: 10px; 
 +
  left: 10px;
 +
  right: 10px ;
 +
}
 +
 +
section.page.second
 +
{
 +
 +
  background: hsla(100, 100%, 50%, 0.5);
 +
    position: relative;
 +
  top: -2300px;
 +
  bottom: 50px; 
 +
  left: 50px;
 +
  right: 50px ;
 +
}
 +
 +
section.page.third
 +
{
 +
 +
  background: hsla(300, 100%, 50%, 0.5);
 +
    position: relative;
 +
  top: -2300px;
 +
  bottom: 100px; 
 +
  left: 100px;
 +
  right: 100px ;
 +
}
 +
 +
section.page.fourth
 +
{
 +
 +
  background: hsla(340, 10%, 50%, 0.4);
 +
    position: relative;
 +
  top: -2300px;
 +
  bottom: 100px; 
 +
  left: 100px;
 +
  right: 100px ;
 +
}
 +
 +
article{
 +
    width:100%;
 +
    display:flex;
 +
 +
}
 +
div{
 +
  width:50%;
 +
  padding:3mm;
 +
}
 +
p{
 +
    margin:1rem 0 0 0;
 +
    line-height:1rem;
 +
    font-size:0.9rem;
 +
 +
}
 +
p.highlight{
 +
    font-size:1.9rem;
 +
    line-height:2rem;
 +
}
 +
h2{
 +
    font-weight:normal;
 +
 +
    margin:0 0 1rem 0;
 +
    /*margin-bottom:2rem;*/
 +
 +
    line-height:2rem;
 +
    font-size:1.8rem;
 +
    text-align:center;
 +
 +
 +
}
 +
#bara1, #bara2,#bara3,#bara4
 +
{
 +
    max-width: 40%;
 +
    max-height: 40%;
 +
    margin-top: 3%;
 +
    margin-right: 3%;
 +
    margin-left: 3%;
 +
}
 +
#derby1, #derby2,#derby3
 +
{
 +
    max-width: 40%;
 +
    max-height: 40%;
 +
    margin-top: 3%;
 +
    margin-right: 3%;
 +
    margin-left: 3%;
 +
}
 +
#barbe1,#barbe2, #barbe3
 +
{
 +
    max-width: 60%;
 +
    max-height: 60%;
 +
    margin-top: 3%;
 +
    margin-right: 3%;
 +
    margin-left: 3%;
 +
}
 +
 +
.article
 +
{
 +
  width:1mm;
 +
  height: 2mm;
 +
  border:100px solid black;
 +
  line-height: -600px;
 +
  margin:100px;
 +
  padding:500mm;
 +
 +
}
 +
 +
@media print
 +
{
 +
   
 +
  @page
 +
  {
 +
      size: 220mm 300mm;
 +
  }
 +
  body
 +
  {
 +
      display: block;
 +
      margin: 0;
 +
  }
 +
  section.page
 +
  {
 +
      margin: 0;
 +
      border:1px solid black;
 +
      margin:10px;
 +
      padding:5mm;
 +
      position: relative;
 +
      top: -2250;
 +
  }
 +
 +
}
 +
 +
 +
 +
 +
 +
 +
 +
-------------------------
 
* remplacer toutes les lettres d'une phrase, ici pangramme, par un mot
 
* remplacer toutes les lettres d'une phrase, ici pangramme, par un mot
  

Version du 20 décembre 2021 à 00:32

@font-face {

   font-family: cochin;
   src: url('cochin.ttc');

}

  • {
   box-sizing:border-box;

}

html, body {

  font-family:cochin; 
  font-size:13pt;
  color: red;
  background: hsl(240, 70%, 90%);
  display: inline;

}

section.page{

 width:15mm;
 height: 200mm;
 border:1px solid black;
 line-height: -600px;
 margin:10px;
 padding:5mm;

}

section.page.first {

  background: hsla(0, 100%, 50%, 0.5);
  position: relative;
  top: -3000px;
  bottom: 10px;  
  left: 10px; 
  right: 10px ;

}

section.page.second {

  background: hsla(100, 100%, 50%, 0.5);
   position: relative;
  top: -2300px;
  bottom: 50px;  
  left: 50px; 
  right: 50px ;

}

section.page.third {

  background: hsla(300, 100%, 50%, 0.5);
   position: relative;
  top: -2300px;
  bottom: 100px;  
  left: 100px; 
  right: 100px ;

}

section.page.fourth {

  background: hsla(340, 10%, 50%, 0.4);
   position: relative;
  top: -2300px;
  bottom: 100px;  
  left: 100px; 
  right: 100px ;

}

article{

   width:100%;
   display:flex;

} div{

  width:50%;
  padding:3mm; 

} p{

   margin:1rem 0 0 0;
   line-height:1rem;
   font-size:0.9rem;

} p.highlight{

   font-size:1.9rem;
   line-height:2rem;

} h2{

   font-weight:normal;

   margin:0 0 1rem 0;
   /*margin-bottom:2rem;*/

   line-height:2rem;
   font-size:1.8rem;
   text-align:center;


}

  1. bara1, #bara2,#bara3,#bara4

{

   max-width: 40%;
   max-height: 40%;
   margin-top: 3%;
   margin-right: 3%;
   margin-left: 3%;

}

  1. derby1, #derby2,#derby3

{

   max-width: 40%;
   max-height: 40%;
   margin-top: 3%;
   margin-right: 3%;
   margin-left: 3%;

}

  1. barbe1,#barbe2, #barbe3

{

   max-width: 60%;
   max-height: 60%;
   margin-top: 3%;
   margin-right: 3%;
   margin-left: 3%;

}

.article {

 width:1mm;
 height: 2mm;
 border:100px solid black;
 line-height: -600px;
 margin:100px;
 padding:500mm;

}

@media print {

 @page
 {
     size: 220mm 300mm; 
 }
 body
  {
     display: block; 
     margin: 0;
  }
  section.page
  {
     margin: 0; 
     border:1px solid black;
     margin:10px;
     padding:5mm;
     position: relative;
     top: -2250;
  }

}





  • remplacer toutes les lettres d'une phrase, ici pangramme, par un mot


{ sample_string = "z o e m a g r a n d e f i l l e v e u t q u e j e b o i v e c e w h i s k y d o n t j e n e v e u x p a s " char_to_replace = {

                  'a': 'rêver',
                  'b': 'super',
                  'c': 'ah bon',
                  'd': 'melodie',

etcetctetectctctetetc


sample_string = sample_string.translate(str.maketrans(char_to_replace)) print(sample_string) }


# -*- coding: utf8 -*-

voix_un = int(input("Enter first number "))
voix_deux = int(input("Enter second number "))

print("\n")
print("First Number:", voix_un)
print("Second Number:", voix_deux)
x = voix_un + voix_deux

if x == 2:
    print("100 %")
elif x == 12 :
    print ("100%")
elif x == 3 :
    print ("90%")
elif x == 13 :
    print ("90%")
elif x == 4 :
    print ("80%")
elif x == 14 :
    print ("80%")
elif x == 5 :
    print ("70%")
elif x == 15 :
    print ("70%")
elif x == 6 :
    print ("60%")
elif x == 16 :
    print ("60%")
elif x == 7 :
    print ("50%")
elif x == 17 :
    print ("50%")
elif x == 8 :
    print ("40%")
elif x == 18 :
    print ("40%")
elif x == 9 :
    print ("30%")
elif x == 19 :
    print ("30%")
elif x == 10 :
    print ("20%")
elif x == 20 :
    print ("20%")
elif x == 11 :
    print ("10%")
else : 
    print ("bizarre")

scale map processing java function