This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input[type=search]{ | |
appearance: none; | |
-webkit-appearance: none; | |
-moz-apperance: none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="search" name="s"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
percentage = float(25) / 100 | |
#percentage = 12 | |
calc = 1753 | |
result = (percentage * calc) | |
print result | |
if result == int(result): | |
print(True) | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open_file = open(file_name, [modo de apertura]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_read = open(file, 'r') | |
onlyRead = file_read.read() | |
print(onlyRead) #Imprime el contenido | |
file_read.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new_file = open('nameFile', 'w') | |
new = new_file.write(string) | |
new_file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_open = open('simon', 'r') | |
file_read = file_open() | |
change = file_read.replace('Simón', 'sarchis') | |
file_open.close() | |
new_file = open('newgate') | |
create_file = new_file.write(change) | |
new_file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
# -*-coding: utf-8-*- | |
name = raw_input('Ingrese su nombre: ') | |
filename = raw_input('Ingrese nombre del archivo: ') | |
abrir = open('simon', 'r') | |
chain = abrir.read() | |
chain = chain.replace('Simón', name) | |
abrir.close() |