This file contains hidden or 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
| def k (a,b): | |
| lst1 = [] | |
| lst2 = [] | |
| for i in range(0,9,3): | |
| lst1.append(a[0+i:3+i]) | |
| for i in range(0,9,3): | |
| lst2.append(b[0+i:3+i]) | |
| return lst1,lst2 | |
| def main(): |
This file contains hidden or 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
| import math | |
| def isValid(number): | |
| if prefixMatched(number, 4) or prefixMatched(number, 5) or prefixMatched(number, 37) or prefixMatched(number, 6): | |
| total = sumOfOddPlace(number) + sumOfDoubleEvenPlace(number) | |
| if total % 10 == 0: | |
| return True | |
| else: | |
| return False | |
| else: |
This file contains hidden or 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
| def generateMatrix(value): | |
| matrix = [] | |
| value = [eval(i) for i in value.split()] | |
| c = 0 #換行標記 | |
| for i in range(3): | |
| matrix.append([]) | |
| for j in range(c, c + 3): | |
| matrix[i].append(value[j]) |
This file contains hidden or 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
| def countAlpha(pw): | |
| countAlpha = 0 | |
| countBig = 0 | |
| for each in pw: | |
| if each.isalpha(): | |
| countAlpha += 1 | |
| if each.isupper(): | |
| countBig += 1 | |
| return countAlpha, countBig |
This file contains hidden or 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 sys import stdin | |
| for row in stdin: | |
| row = row.strip() | |
| show = "" | |
| for each in row: | |
| if each.isupper(): | |
| show += each.lower() + " " | |
| else: | |
| show += each.upper() + " " |
This file contains hidden or 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
| package chapter02; | |
| import java.util.*; | |
| public class E2_2 { | |
| public static void main(String[] args) { | |
| //從鍵盤讀取物件 | |
| Scanner input = new Scanner(System.in); | |
This file contains hidden or 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
| @extends('tpl.main') | |
| @section('title', '儲值') | |
| @section('head') | |
| <script> | |
| $(function () { | |
| $('#submit').click( function () { | |
| if($('#key').val() == "") | |
| { |
This file contains hidden or 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
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use Auth; | |
| use App\User; | |
| use App\Wallet; | |
| use App\WalletCode; | |
| use App\WalletLog; |
This file contains hidden or 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
| package org.changken.tutorialsample; | |
| import android.content.Context; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.AdapterView; | |
| import android.widget.ArrayAdapter; |
This file contains hidden or 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
| REMIX EXAMPLE PROJECT | |
| Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. | |
| It contains 3 directories: | |
| 1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name. | |
| 2. 'scripts': Holds two scripts to deploy a contract. It is explained below. | |
| 3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity. | |
| SCRIPTS |
OlderNewer