作业五:总结Linux常用命令使用格式,并用实例说明。例如echo、screen、date、ifconfig、export等命令_浅( ⊙ o白色的博客-程序员秘密

技术标签: 作业  运维开发  

echo:等待标准输入,后面可以接字符串,也支持正则表达式

[email protected]:~# man  echo
SYNOPSIS
       echo [SHORT-OPTION]... [STRING]...
       echo LONG-OPTION

示范:

[email protected]:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
[email protected]:~# echo  'nameserver 114.114.114.114' >> /etc/resolv.conf 
[email protected]:~# cat /etc/resolv.conf 
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
nameserver 114.114.114.114

screen:模拟多个窗口,窗口关闭后还可以调出来,常用于需要执行很长时间的时候

[email protected]:~# screen  --help
Use: screen [-opts] [cmd [args]]
 or: screen -r [host.tty]

Options:
-4            Resolve hostnames only to IPv4 addresses.
-6            Resolve hostnames only to IPv6 addresses.
-a            Force all capabilities into each window's termcap.
-A -[r|R]     Adapt all windows to the new display width & height.
-c file       Read configuration file instead of '.screenrc'.
-d (-r)       Detach the elsewhere running screen (and reattach here).
-dmS name     Start as daemon: Screen session in detached mode.
-D (-r)       Detach and logout remote (and reattach here).
-D -RR        Do whatever is needed to get a screen session.
-e xy         Change command characters.
-f            Flow control on, -fn = off, -fa = auto.
-h lines      Set the size of the scrollback history buffer.
-i            Interrupt output sooner when flow control is on.
-l            Login mode on (update /var/run/utmp), -ln = off.
-ls [match]   or
-list         Do nothing, just list our SockDir [on possible matches].
-L            Turn on output logging.
-Logfile file Set logfile name.
-m            ignore $STY variable, do create a new screen session.
-O            Choose optimal output rather than exact vt100 emulation.
-p window     Preselect the named window if it exists.
-q            Quiet startup. Exits with non-zero return code if unsuccessful.
-Q            Commands will send the response to the stdout of the querying process.
-r [session]  Reattach to a detached screen process.
-R            Reattach if possible, otherwise start a new session.
-s shell      Shell to execute rather than $SHELL.
-S sockname   Name this session <pid>.sockname instead of <pid>.<tty>.<host>.
-t title      Set title. (window's name).
-T term       Use term as $TERM for windows, rather than "screen".
-U            Tell screen to use UTF-8 encoding.
-v            Print "Screen version 4.08.00 (GNU) 05-Feb-20".
-wipe [match] Do nothing, just clean up SockDir [on possible matches].
-x            Attach to a not detached screen. (Multi display mode).
-X            Execute <cmd> as a screen command in the specified session.

[email protected]:~# screen  -ls
There is a screen on:
        9932.test       (04/01/2022 01:54:22 PM)        (Detached)
1 Socket in /run/screen/S-root.

 date:显示系统时间

[email protected]:~# date
Sun 03 Apr 2022 10:33:57 PM UTC
[email protected]:~# date --help
Usage: date [OPTION]... [+FORMAT]
  or:  date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
Display the current time in the given FORMAT, or set the system date.

Mandatory arguments to long options are mandatory for short options too.
  -d, --date=STRING          display time described by STRING, not 'now'
      --debug                annotate the parsed date,
                              and warn about questionable usage to stderr
  -f, --file=DATEFILE        like --date; once for each line of DATEFILE
  -I[FMT], --iso-8601[=FMT]  output date/time in ISO 8601 format.
                               FMT='date' for date only (the default),
                               'hours', 'minutes', 'seconds', or 'ns'
                               for date and time to the indicated precision.
                               Example: 2006-08-14T02:34:56-06:00
  -R, --rfc-email            output date and time in RFC 5322 format.
                               Example: Mon, 14 Aug 2006 02:34:56 -0600
      --rfc-3339=FMT         output date/time in RFC 3339 format.
                               FMT='date', 'seconds', or 'ns'
                               for date and time to the indicated precision.
                               Example: 2006-08-14 02:34:56-06:00
  -r, --reference=FILE       display the last modification time of FILE
  -s, --set=STRING           set time described by STRING
  -u, --utc, --universal     print or set Coordinated Universal Time (UTC)
      --help     display this help and exit
      --version  output version information and exit

FORMAT controls the output.  Interpreted sequences are:

  %%   a literal %
  %a   locale's abbreviated weekday name (e.g., Sun)
  %A   locale's full weekday name (e.g., Sunday)
  %b   locale's abbreviated month name (e.g., Jan)
  %B   locale's full month name (e.g., January)
  %c   locale's date and time (e.g., Thu Mar  3 23:05:25 2005)
  %C   century; like %Y, except omit last two digits (e.g., 20)
  %d   day of month (e.g., 01)
  %D   date; same as %m/%d/%y
  %e   day of month, space padded; same as %_d
  %F   full date; same as %Y-%m-%d
  %g   last two digits of year of ISO week number (see %G)
  %G   year of ISO week number (see %V); normally useful only with %V
  %h   same as %b
  %H   hour (00..23)
  %I   hour (01..12)
  %j   day of year (001..366)
  %k   hour, space padded ( 0..23); same as %_H
  %l   hour, space padded ( 1..12); same as %_I
  %m   month (01..12)
  %M   minute (00..59)
  %n   a newline
  %N   nanoseconds (000000000..999999999)
  %p   locale's equivalent of either AM or PM; blank if not known
  %P   like %p, but lower case
  %q   quarter of year (1..4)
  %r   locale's 12-hour clock time (e.g., 11:11:04 PM)
  %R   24-hour hour and minute; same as %H:%M
  %s   seconds since 1970-01-01 00:00:00 UTC
  %S   second (00..60)
  %t   a tab
  %T   time; same as %H:%M:%S
  %u   day of week (1..7); 1 is Monday
  %U   week number of year, with Sunday as first day of week (00..53)
  %V   ISO week number, with Monday as first day of week (01..53)
  %w   day of week (0..6); 0 is Sunday
  %W   week number of year, with Monday as first day of week (00..53)
  %x   locale's date representation (e.g., 12/31/99)
  %X   locale's time representation (e.g., 23:13:48)
  %y   last two digits of year (00..99)
  %Y   year
  %z   +hhmm numeric time zone (e.g., -0400)
  %:z  +hh:mm numeric time zone (e.g., -04:00)
  %::z  +hh:mm:ss numeric time zone (e.g., -04:00:00)
  %:::z  numeric time zone with : to necessary precision (e.g., -04, +05:30)
  %Z   alphabetic time zone abbreviation (e.g., EDT)

By default, date pads numeric fields with zeroes.
The following optional flags may follow '%':

  -  (hyphen) do not pad the field
  _  (underscore) pad with spaces
  0  (zero) pad with zeros
  ^  use upper case if possible
  #  use opposite case if possible

After any flags comes an optional field width, as a decimal number;
then an optional modifier, which is either
E to use the locale's alternate representations if available, or
O to use the locale's alternate numeric symbols if available.

Examples:
Convert seconds since the epoch (1970-01-01 UTC) to a date
  $ date --date='@2147483647'

Show the time on the west coast of the US (use tzselect(1) to find TZ)
  $ TZ='America/Los_Angeles' date

Show the local time for 9AM next Friday on the west coast of the US
  $ date --date='TZ="America/Los_Angeles" 09:00 next Fri'

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation at: <https://www.gnu.org/software/coreutils/date>
or available locally via: info '(coreutils) date invocation'

[[email protected] ~]# date 
Mon Apr  4 06:41:34 CST 2022
[[email protected] ~]# date +%F
2022-04-04
[[email protected] ~]# date +%T
06:41:49

ifconfig:查看和配置系统的网络信息 (最小化安装的操作系统可能没有这个命令,需要装一下net-tools)

[[email protected] ~]# ifconfig 
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:21ff:fe2f:e2c5  prefixlen 64  scopeid 0x20<link>
        ether 02:42:21:2f:e2:c5  txqueuelen 0  (Ethernet)
        RX packets 20709  bytes 5831411 (5.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 21889  bytes 35876509 (34.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.20.4  netmask 255.255.255.0  broadcast 192.168.20.255
        inet6 fe80::f20d:3936:1627:5ceb  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:94:37:2b  txqueuelen 1000  (Ethernet)
        RX packets 3617156  bytes 3352893357 (3.1 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1265033  bytes 57181152592 (53.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 170  bytes 24748 (24.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 170  bytes 24748 (24.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth43ef810: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::605e:b8ff:fe0a:763a  prefixlen 64  scopeid 0x20<link>
        ether 62:5e:b8:0a:76:3a  txqueuelen 0  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 656 (656.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth61cd4c6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::e46c:16ff:fe86:ebfd  prefixlen 64  scopeid 0x20<link>
        ether e6:6c:16:86:eb:fd  txqueuelen 0  (Ethernet)
        RX packets 9904  bytes 699251 (682.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10081  bytes 17791016 (16.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vethbd3077f: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::480e:69ff:fe44:7a9f  prefixlen 64  scopeid 0x20<link>
        ether 4a:0e:69:44:7a:9f  txqueuelen 0  (Ethernet)
        RX packets 7  bytes 574 (574.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 1272 (1.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[[email protected] ~]#  
[[email protected] ~]# 
[[email protected] ~]# 
[[email protected] ~]# ifconfig -help
Usage:
  ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]
  [add <address>[/<prefixlen>]]
  [del <address>[/<prefixlen>]]
  [[-]broadcast [<address>]]  [[-]pointopoint [<address>]]
  [netmask <address>]  [dstaddr <address>]  [tunnel <address>]
  [outfill <NN>] [keepalive <NN>]
  [hw <HW> <address>]  [mtu <NN>]
  [[-]trailers]  [[-]arp]  [[-]allmulti]
  [multicast]  [[-]promisc]
  [mem_start <NN>]  [io_addr <NN>]  [irq <NN>]  [media <type>]
  [txqueuelen <NN>]
  [[-]dynamic]
  [up|down] ...

  <HW>=Hardware Type.
  List of possible hardware types:
    loop (Local Loopback) slip (Serial Line IP) cslip (VJ Serial Line IP) 
    slip6 (6-bit Serial Line IP) cslip6 (VJ 6-bit Serial Line IP) adaptive (Adaptive Serial Line IP) 
    ash (Ash) ether (Ethernet) ax25 (AMPR AX.25) 
    netrom (AMPR NET/ROM) rose (AMPR ROSE) tunnel (IPIP Tunnel) 
    ppp (Point-to-Point Protocol) hdlc ((Cisco)-HDLC) lapb (LAPB) 
    arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device) 
    sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI) 
    irda (IrLAP) ec (Econet) x25 (generic X.25) 
    infiniband (InfiniBand) eui64 (Generic EUI-64) 
  <AF>=Address family. Default: inet
  List of possible address families:
    unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6) 
    ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE) 
    ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet) 
    ash (Ash) x25 (CCITT X.25) 


[[email protected] ~]# ifconfig docker0 down         #关闭docker网卡
[[email protected] ~]# ifconfig docker0
docker0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:21:2f:e2:c5  txqueuelen 0  (Ethernet)
        RX packets 20709  bytes 5831411 (5.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 21889  bytes 35876509 (34.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

export:可以显示当前bash的环境变量

[[email protected] ~]# export
declare -x CLASSPATH="/usr/local/java/jdk1.8.0_161/lib/"
declare -x HISTCONTROL="ignoredups"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="localhost.localdomain"
declare -x JAVA_HOME="/usr/local/java/jdk1.8.0_161"
declare -x LANG="en_US.UTF-8"
declare -x LESSOPEN="||/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/java/jdk1.8.0_161/bin:/root/bin"
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="192.168.40.1 50881 22"
declare -x SSH_CONNECTION="192.168.40.1 50881 192.168.20.5 22"
declare -x SSH_TTY="/dev/pts/2"
declare -x TERM="vt100"
declare -x USER="root"
declare -x XDG_RUNTIME_DIR="/run/user/0"
declare -x XDG_SESSION_ID="485"

[[email protected] ~]# export --help
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_41593551/article/details/123908608

智能推荐

elasticsearch优化之分词精确查询match_phrase_codeSeeking的博客-程序员秘密_elasticsearch match_phrase

1 对于已经做了分词的字段,当我们做全文检索时,是那么的灵活和方便,有时候也需要精确匹配,查某个短语。如这样的字段:用ik_max_word 对数据建索引时既可以把词分出来建索引,又可以把字分出来建索引。然后用 ik_smart 将查找短语,因为ik_smart分出的数据是 ik_max_word 的一个子集,如果要查找的短语在原文中有出现,那么一定可以查到,然而却没有找到,比如原文:原文:...

node.js博客项目day01-项目基本配置_weixin_46128398的博客-程序员秘密

node.js博客项目day01-项目基本配置项目简介项目文件结构配置数据库配置路由项目入口文件app.js项目简介该项目是跟随网上黑马node项目的动手实战,主要实现博客发布和博客管理功能,我开个专栏专门记录实战历程和个人的思考。项目文件结构app.js:项目入口文件,做项目一些基本的配置package-lock.json/package.json:nodejs配置文件middleware:主要放一些中间文件model:放置数据库有关的配置文件public:放置静态资源文件route

Rigify:面向初学者解决Rigify各种错误的入门级通用解决办法_开发游戏的老王的博客-程序员秘密

为啥说是”入门级通用解决办法“,因为要是完全不知道Rigify的原理,自己玩出错概率还是很多的。

mysql百万级数据查询优化_yfgcq的博客-程序员秘密

1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:sel

cocos2dx封装一个具有Layout功能的Point类 (提供源码)_峻峰飞阳的博客-程序员秘密

(原创文章,转载请注明原文出处:http://blog.csdn.net/while0/article/details/79032004)基于cocos2dx开发游戏,免不了设置节点或精灵的位置,这些位置坐标常常不是一个绝对坐标值,而是相对于其它节点的相对坐标。例如:精灵A与精灵B左对齐,精灵A与精灵B中心对齐等等。计算这些相对坐标值,每次都需要进行计算,计算时要考虑到精灵

Spring Cloud 微服务开发:入门、进阶与源码剖析 —— 9.4 Spring Cloud Gateway 路由断言工厂_极客挖掘机的博客-程序员秘密

9.4 Spring Cloud Gateway 路由断言工厂断言(predicate),java 8中的断言函数。Spring Cloud Gateway中的断言函数输入类型是Spring 5.0框架中的ServerWebExchange。Spring Cloud Gateway中的断言函数允许开发者去定义匹配来自于HttpRequest中的任何信息,比如请求头和参数等。9.4.1 Afte...

随便推点

mips-mti-gnu-linux,【歪门邪道】利用WSL搭建MIPS32构建环境_子维酱的博客-程序员秘密

最近打算参加一个CPU设计竞赛,遂开始从头开始看一本叫做《自己动手写CPU》的书,因为年头比较古老了,其中的干货还很有价值,但是涉及诸如仿真、Mips环境搭建等事宜,再以书中内容做参考就不太适宜了。书中给出的Mips编译器还是2013年的呢,这篇文章我将记述如何一边google一边寻找最新版的编译器来完成同样的事情。当然了,不使用最新版的同样也可以完成,而且直接按书上来的就是了,但是我总是喜欢用最...

动态规划解决子序列、子串问题_shao1996的博客-程序员秘密

最长递增子序列给你一个整数数组 nums ,找到其中最长严格递增子序列的长度。子序列是由数组派生而来的序列,删除(或不删除)数组中的元素而不改变其余元素的顺序。例如,[3,6,2,7] 是数组 [0,3,1,6,2,2,7] 的子序列。class Solution { /** * 思路分析: * 1 时间复杂度O(n^2) * 返回最长递增子序列的长度dp[i]:表示以i为结尾的最长递增子序列 * 转移方程:dp[i]

黑马程序员——Objective-C学习之NSNumber\NSValue\NSNull_arethusa69的博客-程序员秘密

------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------一、NSNumber1> 可以使用对象来封装基本数值;2> NSNumber类可以包装基本数据类型,还包括无符号版本和各种long型数据及long long整型数据;3> 常用方法:NSNumber类包装基本数据类型:+ (NSNumber *)numberWithChar

Swagger2.0 的Config简单配置_叶枫^_^的博客-程序员秘密_swagger2config

Swagger2.0自定义的apiInfo的Config实例如下所示:@[email protected] //开启swagger2public class SwaggerConfig { //配置了Swagger的Docket的bean实例 //enable 是否启动swagger @Bean public Docket docket(Environment environment){ // 设置要显示swagger的环境

CCF CSP20190901 小明种苹果_就想做一条闲鱼的博客-程序员秘密

遗忘c快三年了,加上之前基础不扎实,今天刷到这道题收获了什么时候该取地址的问题,Mark!题目代码#include&lt;cstdio&gt;#include&lt;cmath&gt;int a[10000][10000];int b[1000]={0};int main(){ int N,M,T=0,P=0,k; scanf("%d %d",&amp;N, &amp;M); for(int i=0;i&lt;N;i++) for(int j=0;j&lt;M+1;j+

在ubuntu 16.04上安装tensorflow,并测试成功_ai516001066的博客-程序员秘密

用下面代码测试安装: 1 #! /usr/bin/python 2 # -*- coding: utf-8 -*- 3 4 import tensorflow as tf 5 import numpy 6 import matplotlib.pyplot as plt 7 rng = numpy.random 8 9 learning_ra...