You are viewing a single comment's thread. Return to all comments →
import re import sys content = sys.stdin.read() if re.match(r'.*?class [^{]+{', content, re.DOTALL): print('Java') elif re.match(r'.*?#include<', content, re.DOTALL): print('C') else: print('Python')
Seems like cookies are disabled on this browser, please enable them to open this website
Building a Smart IDE: Programming Language Detection
You are viewing a single comment's thread. Return to all comments →