Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to know the type of encoding
Post: How to know the type of encoding

Hello, I'm codin in python 2.7, I want to send alert mail, and the mail I send look like, I use UTF-8 for the encoding: oui é : mécontentement suite à refus subvention pour association sportive du c...
Serferi General Coding Help 2 2,144 May-28-2019, 07:07 AM
    Thread: Selecting a sample based on index
Post: RE: Selecting a sample based on index

try this os.path.getctime('data.txt')it return a float so you can make an > or <.
Serferi General Coding Help 1 1,822 May-14-2019, 08:44 AM
    Thread: Can I make a session on os.system
Post: Can I make a session on os.system

There is my code, he work with python 2.7 on linux print "OUI" os.system("python ../updater.3.pyc") os.system("cd .. | pwd") path = "../../.." fi...
Serferi General Coding Help 1 2,376 May-09-2019, 06:36 AM
    Thread: need some help with loops
Post: RE: need some help with loops

You can only put an else after an if or an elif and for your script you should use a bool for the turn, if it's false haydin turn, true tyler.
Serferi General Coding Help 2 2,012 May-07-2019, 03:46 PM
    Thread: Execute a .pyc
Post: Execute a .pyc

Hello i try to execute a pyc file with this execfile("Perecastor.pyc")then I get this: SyntaxError: Non-ASCII character '\xf3' in file ../Perecastor.pyc on line 1, but no encoding declared; see http:...
Serferi General Coding Help 1 2,254 May-07-2019, 12:53 PM
    Thread: Connect to database OVH
Post: Connect to database OVH

Hello, I'm trying to make a python script that I run from my server, this script need to modify a mysql database that is in localhost at ovh, so I have to go through phpmyadmin, but just no idea how t...
Serferi General Coding Help 0 2,057 Apr-26-2019, 07:34 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020