Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# -*- coding:utf-8 -*-
import random
for num in range(50):
a = random.randint(111,999)
b = random.randint(111,999)
print ("%d×%d=" %(a, b))

Github 發 Pull Request & 貢獻流程速查

前言

此文目標讀者需先自行學會

  • 開 Github 帳號
  • 會 fork 程式 repository
  • 會在自己的電腦使用命令列 git
  • 會 clone 自己的 repository
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
/* Real file path */
char *filepath = argc[argv-1];
/* check .txt file */
char *type = &filepath[strlen(filepath) -4];