Skip to content

Instantly share code, notes, and snippets.

View gitmhb's full-sized avatar

kelly gitmhb

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
struct Stock
{
char code[20];
char name[10];
int volume;
double price;
@gitmhb
gitmhb / python 01
Created April 30, 2017 11:26
The snake of hungry.
from graphics import *
import random
import time
t1=0.2
def drawl(list):
for p in list:
(x,y)=p
rect=Rectangle(Point(12*x,12*y),Point(12*x+12,12*y+12))