This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import multiprocessing as mp | |
L = 100000 | |
proc = 500 # 8並列とする | |
# 各プロセスが実行する計算 | |
def subcalc(p): # p = 0,1,...,7 | |
subtotal = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
# まずは,入力した時間になったらターミナルで知らせてくれるものを作ってみる | |
from datetime import datetime | |
from time import sleep | |
print(datetime.now()) | |
my_time_hour=int(input("時間を入力してください:")) | |
my_time_minute=int(input()) | |
while True: | |
h=int(datetime.now().hour) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ウインドウを作成し,時刻を出力する.このときに出力する時刻は,更新しないものとする. | |
from datetime import datetime | |
import tkinter | |
from tkinter import font | |
from time import sleep | |
root=tkinter.Tk() | |
root.title("timer") | |
today_time=datetime.now() | |
root.geometry("400x300") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ウインドウの時間が適度に更新されるようにする. | |
# 入力した時間にウインドウが作成される. | |
from tkinter import font | |
import tkinter | |
from datetime import datetime,time | |
def show_time(): | |
today_time=datetime.now() | |
label1 = tkinter.Label(root, text=today_time) | |
label1.pack(side="top") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import tkinter | |
import time | |
w=800 | |
h=600 | |
root1=tkinter.Tk() | |
root1.title("timer") | |
root1.geometry("800x450") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="main.css"> | |
<title>calculator</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CreateMagic : MonoBehaviour | |
{ | |
public GameObject Prefab1; | |
public GameObject Prefab2; | |
public GameObject Prefab3; | |
public GameObject Prefab4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class PlayerControl : MonoBehaviour { | |
//Rigidbodyを変数に入れる | |
Rigidbody rb; | |
//移動スピード | |
public float speed = 3f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
public class PlayerController : MonoBehaviour { | |
public float speed = 4f; //歩くスピード | |
public float jumpPower = 400; //ジャンプ力 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class JunkochanControl: MonoBehaviour { | |
private float InputH;//Horizontal Input (A & D key) | |
private float InputV;//Vertical Input (W & S key) | |
private GameObject JKCCam;//Camera which chases Junkochan | |
private CharacterController JKCController;//Character controller component attached to Junkochan | |
private Animator JKCAnim;//Animator component attached to Junkochan |
OlderNewer