Posts by Yúlia • 29 points
4 posts
-
0
votes2
answers52
viewsQ: Transform long/varchar data to string
# -*- coding: utf-8 -*- import MySQLdb as mdb import matplotlib.pyplot as plt print(plt) con = mdb.connect('localhost', 'root', '123456', 'testdb'); null = None with con: cur = con.cursor() d =…
-
0
votes1
answer207
viewsQ: Transform varchar to float
I made a code that takes data from the comic to generate a graph with the matplotlib, but the data in the comic is as varchar and for the creation of the data it must be in the format float. How can…
-
0
votes1
answer167
viewsQ: Socket-python syntax error
except socket.error, (errno, msg): if errno == 1: # Operation not permitted msg = msg + ( " - Note that ICMP messages can only be sent from processes" " running as root." ) raise socket.error(msg)…
-
2
votes1
answer96
viewsQ: Gping must be called as first argument
if __name__ == '__main__': top_100_domains =…