- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想通过串口从 SICK LMS200 激光雷达扫描仪读取数据。我可以看到串行端口为/dev/ttyUSB0。我只是不知道如何从中获取数据。
我尝试使用工具箱手册中所示的手动安装在 Ubuntu 14.04.3 LTS 下安装 The Sick LIDAR Matlab/C++ Toolbox。
我解压文件:
$tar -xzvf sicktoolbox-1.0.1.tar.gz
me@MyPC:~/smetiste/Sick/sicktoolbox-1.0.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for gnuplot... no
configure: WARNING: *** gnuplot not found, some examples will not be built.
checking for doxygen... no
configure: WARNING: doxygen not found - will not generate any doxygen documentation
checking for perl... /usr/bin/perl
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking linux/serial.h usability... yes
checking linux/serial.h presence... yes
checking for linux/serial.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking whether time.h and sys/time.h may both be included... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking whether gcc needs -traditional... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating c++/Makefile
config.status: creating c++/examples/Makefile
config.status: creating c++/examples/ld/Makefile
config.status: creating c++/examples/ld/ld_config/Makefile
config.status: creating c++/examples/ld/ld_config/src/Makefile
config.status: creating c++/examples/ld/ld_more_config/Makefile
config.status: creating c++/examples/ld/ld_more_config/src/Makefile
config.status: creating c++/examples/ld/ld_multi_sector/Makefile
config.status: creating c++/examples/ld/ld_multi_sector/src/Makefile
config.status: creating c++/examples/ld/ld_single_sector/Makefile
config.status: creating c++/examples/ld/ld_single_sector/src/Makefile
config.status: creating c++/examples/lms/Makefile
config.status: creating c++/examples/lms/lms_config/Makefile
config.status: creating c++/examples/lms/lms_config/src/Makefile
config.status: creating c++/examples/lms/lms_mean_values/Makefile
config.status: creating c++/examples/lms/lms_mean_values/src/Makefile
config.status: creating c++/examples/lms/lms_partial_scan/Makefile
config.status: creating c++/examples/lms/lms_partial_scan/src/Makefile
config.status: creating c++/examples/lms/lms_plot_values/Makefile
config.status: creating c++/examples/lms/lms_plot_values/src/Makefile
config.status: creating c++/examples/lms/lms_real_time_indices/Makefile
config.status: creating c++/examples/lms/lms_real_time_indices/src/Makefile
config.status: creating c++/examples/lms/lms_set_variant/Makefile
config.status: creating c++/examples/lms/lms_set_variant/src/Makefile
config.status: creating c++/examples/lms/lms_simple_app/Makefile
config.status: creating c++/examples/lms/lms_simple_app/src/Makefile
config.status: creating c++/examples/lms/lms_stream_range_and_reflect/Makefile
config.status: creating c++/examples/lms/lms_stream_range_and_reflect/src/Makefile
config.status: creating c++/examples/lms/lms_subrange/Makefile
config.status: creating c++/examples/lms/lms_subrange/src/Makefile
config.status: creating c++/drivers/Makefile
config.status: creating c++/drivers/ld/Makefile
config.status: creating c++/drivers/ld/sickld-1.0/Makefile
config.status: creating c++/drivers/lms/Makefile
config.status: creating c++/drivers/lms/sicklms-1.0/Makefile
config.status: creating c++/drivers/base/src/SickConfig.hh
config.status: executing depfiles commands
$make
后,我收到此错误:
me@ MyPC:~/smetiste/Sick/sicktoolbox-1.0.1$ make
Making all in c++
make[1]: Entering directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++'
Making all in drivers
make[2]: Entering directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++/drivers'
Making all in ld
make[3]: Entering directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++/drivers/ld'
Making all in sickld-1.0
make[4]: Entering directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++/drivers/ld/sickld-1.0'
/bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLD.lo -MD -MP -MF .deps/SickLD.Tpo -c -o SickLD.lo SickLD.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLD.lo -MD -MP -MF .deps/SickLD.Tpo -c SickLD.cc -fPIC -DPIC -o .libs/SickLD.o
SickLD.cc: In member function 'void SickToolbox::SickLD::_flushTCPRecvBuffer()':
SickLD.cc:4137:35: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
read(_sick_fd,&null_byte,1);
^
g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLD.lo -MD -MP -MF .deps/SickLD.Tpo -c SickLD.cc -o SickLD.o >/dev/null 2>&1
mv -f .deps/SickLD.Tpo .deps/SickLD.Plo
/bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLDMessage.lo -MD -MP -MF .deps/SickLDMessage.Tpo -c -o SickLDMessage.lo SickLDMessage.cc
g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLDMessage.lo -MD -MP -MF .deps/SickLDMessage.Tpo -c SickLDMessage.cc -fPIC -DPIC -o .libs/SickLDMessage.o
g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLDMessage.lo -MD -MP -MF .deps/SickLDMessage.Tpo -c SickLDMessage.cc -o SickLDMessage.o >/dev/null 2>&1
mv -f .deps/SickLDMessage.Tpo .deps/SickLDMessage.Plo
/bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLDBufferMonitor.lo -MD -MP -MF .deps/SickLDBufferMonitor.Tpo -c -o SickLDBufferMonitor.lo SickLDBufferMonitor.cc
g++ -DHAVE_CONFIG_H -I. -I../../../../c++/drivers/base/src -I../../../../c++/drivers/base/src -g -O2 -MT SickLDBufferMonitor.lo -MD -MP -MF .deps/SickLDBufferMonitor.Tpo -c SickLDBufferMonitor.cc -fPIC -DPIC -o .libs/SickLDBufferMonitor.o
In file included from SickLDBufferMonitor.hh:24:0,
from SickLDBufferMonitor.cc:24:
../../../../c++/drivers/base/src/SickBufferMonitor.hh: In member function 'void SickToolbox::SickBufferMonitor<SICK_MONITOR_CLASS, SICK_MSG_CLASS>::_readBytes(uint8_t*, int, unsigned int) const':
../../../../c++/drivers/base/src/SickBufferMonitor.hh:356:47: error: there are no arguments to 'getdtablesize' that depend on a template parameter, so a declaration of 'getdtablesize' must be available [-fpermissive]
num_active_files = select(getdtablesize(),&file_desc_set,0,0,(timeout_value > 0) ? &timeout_val : 0);
^
../../../../c++/drivers/base/src/SickBufferMonitor.hh:356:47: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../../../../c++/drivers/base/src/SickBufferMonitor.hh:370:73: error: there are no arguments to 'read' that depend on a template parameter, so a declaration of 'read' must be available [-fpermissive]
num_bytes_read = read(_sick_fd,&dest_buffer[total_num_bytes_read],1);
^
../../../../c++/drivers/base/src/SickBufferMonitor.hh: In static member function 'static void* SickToolbox::SickBufferMonitor<SICK_MONITOR_CLASS, SICK_MSG_CLASS>::_bufferMonitorThread(void*)':
../../../../c++/drivers/base/src/SickBufferMonitor.hh:456:18: error: there are no arguments to 'usleep' that depend on a template parameter, so a declaration of 'usleep' must be available [-fpermissive]
usleep(1000);
^
../../../../c++/drivers/base/src/SickBufferMonitor.hh: In instantiation of 'void SickToolbox::SickBufferMonitor<SICK_MONITOR_CLASS, SICK_MSG_CLASS>::_readBytes(uint8_t*, int, unsigned int) const [with SICK_MONITOR_CLASS = SickToolbox::SickLDBufferMonitor; SICK_MSG_CLASS = SickToolbox::SickLDMessage; uint8_t = unsigned char]':
SickLDBufferMonitor.cc:59:2: required from here
../../../../c++/drivers/base/src/SickBufferMonitor.hh:356:47: error: 'getdtablesize' was not declared in this scope
num_active_files = select(getdtablesize(),&file_desc_set,0,0,(timeout_value > 0) ? &timeout_val : 0);
^
../../../../c++/drivers/base/src/SickBufferMonitor.hh:370:73: error: 'read' was not declared in this scope
num_bytes_read = read(_sick_fd,&dest_buffer[total_num_bytes_read],1);
^
make[4]: *** [SickLDBufferMonitor.lo] Error 1
make[4]: Leaving directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++/drivers/ld/sickld-1.0'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++/drivers/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/smetiste/Sick/sicktoolbox-1.0.1/c++'
make: *** [all-recursive] Error 1
me@ MyPC:~/smetiste/Sick/sicktoolbox-1.0.1$
最佳答案
该协议(protocol)相对简单且 well documented 。不要被文档的大小吓倒,为了实际使用,您需要一个非常小的子集(从命令 10h,20h
和响应 90h,91h,92h,B0h
开始)。
这是一个可以帮助您入门的小 Python 脚本:
import binascii
import serial
import threading
# =============================================================================
SERIAL_PORT = 'COM6'
# NB: Different crystal, x8 multiplier
SERIAL_BAUDRATE = int(500000 * 14745600 / 16000000 / 8)
SERIAL_TIMEOUT = 1
# =============================================================================
def lms200_crc(data):
crc16 = 0
byte = [0,0]
for c in data:
byte[1] = byte[0]
byte[0] = ord(c)
if (crc16 & 0x8000):
crc16 = (crc16 & 0x7FFF) << 1
crc16 ^= 0x8005
else:
crc16 = crc16<< 1
crc16 ^= (byte[1] << 8) | byte[0]
return crc16
# =============================================================================
class LMS200Telegram(object):
def __init__(self, data=None):
if data:
if len(data) < 7:
raise RuntimeError("Invalid telegram size")
if data[0] != '\x02':
raise RuntimeError("Invalid STX")
self.address = ord(data[1])
self.length = ord(data[2]) + (ord(data[3]) * 256)
self.payload = data[4:-2]
self.crc = ord(data[-2]) + (ord(data[-1]) * 256)
else:
self.address = 0
self.length = 0
self.payload = ''
self.crc = 0
def generate(self):
data = '\x02' + chr(self.address)
self.length = len(self.payload)
data += chr(self.length & 0xFF)
data += chr((self.length >> 8) & 0xFF)
data += self.payload
self.crc = lms200_crc(data)
data += chr(self.crc & 0xFF)
data += chr((self.crc >> 8) & 0xFF)
return data
class LMS200Command(object):
def __init__(self, payload):
if len(payload) < 1:
raise RuntimeError("Invalid payload size")
self.opcode = ord(payload[0])
self.body = payload[1:]
class LMS200Response(object):
def __init__(self, payload):
if len(payload) < 2:
raise RuntimeError("Invalid payload size")
self.opcode = ord(payload[0])
self.status = ord(payload[-1])
self.body = payload[1:-1]
# =============================================================================
def cmd_reset_sensor():
t = LMS200Telegram()
t.payload = '\x10'
return t
def cmd_start_measurement():
t = LMS200Telegram()
t.payload = '\x20\x20'
return t
# =============================================================================
class LMS200Interface(object):
def __init__(self, port, baudrate, timeout):
self.port = port
self.baudrate = baudrate
self.timeout = timeout
self.serial = None
self.serial_rlock = threading.Lock()
self.serial_wlock = threading.Lock()
self.buffer = []
def open_port(self):
self.serial = serial.Serial(port=self.port
, baudrate=self.baudrate
, timeout=self.timeout)
def close_port(self):
self.serial.close()
self.serial = None
def process_data(self, data):
self.buffer += data
def write_telegram(self, t):
self.serial.flush()
with self.serial_wlock:
self.serial.write(t.generate())
with self.serial_rlock:
while True:
ack = self.serial.read(1)
if len(ack) > 0:
if ack == '\x06':
return True
elif ack == '\x15':
return False
else:
raise RuntimeError("Invalid value received (neither ACK, nor NACK)")
def worker(self):
if not self.serial:
raise RuntimeError("Serial port not initialized.")
print "Reading serial port '%s'..." % self.port
while(not self.stop_flag):
data = self.serial.read(1024)
if len(data) > 0:
print "Got %d bytes." % len(data)
self.process_data(data)
def run(self):
lms.open_port()
self.thread = threading.Thread(target=self.worker)
self.stop_flag = False
self.thread.start()
def stop(self):
self.stop_flag = True
self.thread.join()
lms.close_port()
# =============================================================================
lms = LMS200Interface(SERIAL_PORT, SERIAL_BAUDRATE, SERIAL_TIMEOUT)
lms.run()
process_data
方法扩展为:
0x02 0x80
。您还可以对长度进行一些验证。然后尝试读取有效负载,并查看 CRC 是否匹配。 关于linux - 如何从串口 SICK LMS200 读取数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32915251/
我遇到以下问题。我想读取一个包含数百万行和数百列的大型 csv。我想向下转换列的数据类型。我的方法是读取 csv,然后使用 pd.to_numeric() 对其进行向下转换。我不知道列数及其类型。在读
目前,我从 SQL server (2008) 数据库获取数据。 cyurrent的方法是使用DataTable,然后将其传递并使用。 if (parameters != null)
我有以下问题。我有一个巨大的 csv 文件,想用多处理加载它。对于一个包含 500000 行和 130 列不同数据类型的示例文件,Pandas 需要 19 秒。我试过 dask 因为我想多处理阅读。但
是否有关于用于序列化各种 MFC 数据结构的二进制格式的明确文档?我已经能够在十六进制编辑器中查看我自己的一些类,并使用 Java 的 ByteBuffer 类读取它们(使用自动字节顺序转换等)。 但
我正在使用 Selenium 进行测试,我们用 HTML 文件编写测试用例,并用它们制作测试套件,我们的要求是编写足够健壮的测试用例,以根据测试环境改变自身。 为此,我不希望在 HTML 脚本本身中包
我需要一个 JavaScript 代码来读取存储为 .txt 文件的字典(或者也可以保存为任何其他类型的文件。它也可以在线获得)并将其内容存储在一个变量中。我不能找到一种让 JavaScript 像
我正在尝试遍历包含 SSH 登录和其他日志的日志文本文件。 程序正在返回 SSH 登录的总数。 我的解决方案确实有效,但似乎有点慢(在 200mo 文件上大约需要 3.5 秒)。我想知道是否有任何方法
我正在将大量数据从一个电子表格复制到工作簿中的其他 160 个电子表格。目前,Excel (2013) 遇到错误,因为它没有足够的资源来完成操作。 我的目标是将工作表 4 中 V13:XI1150 范
我正在尝试读取一个有 1147 行的文本文件。下面的代码仅读取第 1050-1147 行。我的目标是读取整个文件并提取位于不同行的特定值以在脚本中使用。一个示例是包含“BlockList: 2”的行中
我正在为游戏编写解释器。用户将其移动输入解释器,程序执行该移动。 现在我想为每个决定实现一个时间限制。玩家不应该能够思考超过 30 秒来写一个移动并按下回车。 call_with_time_limit
以this file例如,我正在尝试读取 data.frame 中的数据。来自 the doc (pdf 文件,表 1),它遵循一些 fortran 约定。我尝试了以下但收效甚微: dir 0' 将
我正在使用 R 阅读 Outlook 附件。我的引用在这里:Download attachment from an outlook email using R 这是我的电子邮件的截图: 这每天都会发送
我不会从表格中读取行来将主题放在列表中 php脚本 $url_obj='http://'.$host.':8069/xmlrpc/object'; $sock=new xmlrpc_client($u
我有一个这样的 csv 文件: id,name,value 1,peter,5 2,peter\,paul,3 我如何读取此文件并告诉 R "\," 不表示新列,仅表示 ","。 我必须添加该文件
我正在尝试读取 ~/Library/Preferences/com.apple.mail.plist (在 Snow Leopard 上)以获取电子邮件地址和其他信息以进入“关于”对话框。我使用以下代
This question already has answers here: How do I use floating-point division in bash? (19个回答) 5个月前关闭
本练习的目标是读取输入文件并将其存储到表中,然后验证输入中的某些字段并输出任何错误记录。我需要读取并存储每个策略组,以便表中一次仅存储 5 条记录,而不是整个文件。 所以我需要读取一个包含 5 条记录
据我了解,LWT 插入始终以 SERIAL 一致性级别完成。如果为 true,这是否意味着读取作为 LWT 插入的行可以安全地以 ANY 的一致性级别读取? 换句话说,我假设 LWT 插入是完全一致的
我看到很多很多通过java脚本读取cookie的函数,但我只想在变量中使用它一次,我是JS新手。 这是我的代码 var TheNumber = (Math.random() + '') * 10000
我正在使用 asp.net 和 C#。我在服务器上部署了一个应用程序[已发布],现在我想查看该网站的代码,据我所知,我可以阅读程序集来查看代码。 请告诉我如何实现它。 提前致谢。 最佳答案 您可以使用
我是一名优秀的程序员,十分优秀!