Computer Science
Computer science is the study and the science of the theoretical foundations of information and computation and their implementation and application in computer systems.
Language
Python
Remove
Platform
Any
License
Any
media.show(pic)
Yours,
Frustrated.
I have a dictionary text file and I was trying to find a quick and efficient way to determine whether a word was in the text file. I'm pretty new to programming so any advice or suggestions would be...
Hi.
I have a problem. I am meking a program which amkes .txt documents. The problem is a have to insert words, which have charecters like this: č,š,ž. You can find them in UTF-8 cade, but Idel...
Hi, I have a question about reading float data from a text file and hope somebody can give me some ideas, code is strongly appreciated!
I wrote some float numbers in a text file as below:
0...
Hello,
2 things:
1. Make sure the project that you have is OK with you changing their software, otherwise what you're doing is illegal.
2. I found a couple of places where this could be...
Hi All,
I'd like to build a website in Python, and I'd like to use the popular "Model View Controller" design pattern while doing it. I was wondering if anyone knew of any books on doing such a...
Hi,
I have old big (~2000 pages ) html site with standard template.
Idea is to make php cms to reduce hand coding in future.
I want to strip all html tags, all comments in html and all...
Hi there,
I got this txt file with following contents:
My Glossary
stuff
The above text is saved in test.txt file.
I need to write a python script that would load the above file as...
I need to pass Java POJO's as parameter to the java class I would be calling from Jython. I declared a java project and created a pojo, under the package com.pojo.util and the pojo name is User. I...
')
if input=="yes":
print "te doy "+price
else:
print "lo siento no puedo comprarlo hoy"
def get_price(self):
return self.price
price=property(get_price)...
Nevermind...I figured it out. jythonc isn't very useful because it hard-codes the path to your python script into the java code. This isn't portable at all. However, I installed jython as a jar...
#!/usr/bin/env python
import string
my_file=open('test.txt')
my_dict={}
for eachline in my_file.readlines():
#eachline=
eachline=string.replace(eachline,';','')...
Hi, i create new portal_types in zope.
How my new portal_types assign a file (Document)
jython webclient.py
Traceback (most recent call last):
File "webclient.py", line 12, in
eif = service.getPort(TimeServer.class)
AttributeError: instance attr: class
any ideas?...
I have made a function that will output '{0}' when 0 is given and '{1}' for everything else.
class offset(str):
def __init__(self,x):
self.x=x
def __repr__(self):...
actually came up with this:
class CustomButton(Button):
def changeColors(self,label,bg,outline):
self.label.setFill(label)
self.rect.setFill(bg)
self.rect.setOutline(outline)
and...
I have a simple button class to make buttons
from graphics import *
class Button:
"""A button is a labeled rectangle in a window.
It is activated or deactivated with the activate()...
question is just a string that gets displayed with every call to raw_input. response is a string that stores the result of the call to raw_input. They don't really have anything to do with each...
Thanks for the help. I really appreciate it.