[JS]How to transform from float to buffer by javascript

2021-9-9 写技术

<head> <title>Float to Buffer</title> </head> Input Float: <textarea id="in"></textarea> Output ASCII: <textarea id="out"></textarea> <input type="button" value="Transfor" onclick="transf();" /> <br /> <br /> &...

阅读全文>>

标签: JS

评论(0) 浏览(745)

[JS]Transform from string to ASCII

2021-9-9 写技术

<head> <title>String to ASCII</title> </head> Input String: <textarea id="in"></textarea> Output ASCII: <textarea id="out"></textarea> <input type="button" value="Transfor" onclick="transf();" /> <br /> <br /> ...

阅读全文>>

标签: JS

评论(0) 浏览(758)

[python]Edit excel by xlrd and xlwt

2021-8-26 写技术

import xlrd import xlwt def edit_excel(fromFile, fromSheet): w_workbook = xlwt.Workbook() w_sheet = w_workbook.add_sheet("nicholas", cell_overwrite_ok=True) workbook = xlrd.open_workbook(fromFile) print(workbook.sheet_names()) sheet = workbook.sheet_names()[fromShe...

阅读全文>>

标签: python

评论(0) 浏览(841)

[python]Read excel by xlrd

2021-8-26 写技术

import xlrd def read_excel(fromFile, fromSheet): workbook = xlrd.open_workbook(fromFile) print(workbook.sheet_names()) sheet = workbook.sheet_names()[fromSheet] sheet = workbook.sheet_by_index(fromSheet) print(sheet) row = sheet.nrows col = sheet.ncols ...

阅读全文>>

标签: python

评论(0) 浏览(856)

[python]An example of get web page by selenium

2021-8-17 写技术

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.key...

阅读全文>>

标签: python

评论(0) 浏览(773)

How to install pytorch in ubuntu?

2021-8-7 写技术

conda install pytorch torchvision torchaudio cpuonly -c pytorch 1.You'd better install packages one by one. 2.After enter the command, then you may see "there are some packages will be downloaded". If the network is not well, you'd better cancel the installing processing and then download it ...

阅读全文>>

标签: DL

评论(0) 浏览(785)

Ubuntu on windows (WSL)

2021-8-6 写技术

After I installing the WSL by Microsoft Store failed, changed the network options to TLS 1.2 . And may be the location of domain must be America. That's all.

阅读全文>>

标签: ubuntu

评论(0) 浏览(794)

[python]Display image with matplot

2021-5-27 写技术

import matplotlib.pyplot as plt #plt.figure() img = plt.imread(image_path) plt.imshow(img) plt.show()

阅读全文>>

标签: python

评论(0) 浏览(1006)

[python]Python to read directorys and write sheet (excel)

2021-5-20 写技术

import os import xlwt def file_name(file_dir): for root, dirs, files in os.walk(file_dir): list_files(files) def list_files(files): workbook = xlwt.Workbook(encoding = 'utf-8') worksheet = workbook.add_sheet('Nicholas') lines = 1 for item in files: ...

阅读全文>>

标签: python

评论(0) 浏览(906)

[DL]MNIST handwritten digit processing by TensorFlow Version 2

2021-5-19 写技术

import tensorflow.examples.tutorials.mnist.input_data as input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) import tensorflow as tf sess = tf.InteractiveSession() def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf.Varia...

阅读全文>>

标签: DL

评论(0) 浏览(745)

Powered by anycle 湘ICP备15001973号-1