Created
April 17, 2014 01:28
-
-
Save fabregasguo/10946931 to your computer and use it in GitHub Desktop.
sample c program
This file contains hidden or 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
#include <stdio.h> | |
int main() | |
{ | |
return 1; | |
} |
This file contains hidden or 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
import sys | |
def main(): | |
in_file = open("samle", "r") | |
while 1: | |
lines = in_file.readlines(10000) | |
if not lines: | |
break | |
for line in lines: | |
line = line.strip() | |
words = line.split() | |
len_word = len(words) | |
print len_word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment