线程练习||写两个线程,一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B....5152Z

写两个线程,一个线程打印 1~52,另一个线程打印字母A-Z。打印顺序为12A34B56C……5152Z 通过这个例题学到了很多,记录下来便于以后常看,/* * 写两个线程,一个线程打印1-52,另一个线程打印字母A-Z。打印 顺序为12A34B56C……5152Z> */ public class Test { public static void main(String[] args) { // TODO Auto-generated method stub Object obj 阅读详情

题目描述:

写两个线程,一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B....5152Z

分析:

两个线程,一个负责打印数字,一个负责打印字母,细心的我发现字母是26个,数字是52个,两者是2倍的关系,而且打印的结果中两个数(可以使十位的)配一个字母,所以可以利用循环进行打印,循环26次即可。

这里我们用两个锁,用锁的目的就是线程各自进行,互不打扰,当到临界条件时,我不能进行,你也不能进行,完成分配。

算法:

  1. 定义两个变量,一个是标识flag,一个是数字符count。flag  = false;
  2. 先进行数字的打印,一个是判断flag的循环,若满足条件我们让他等待,等待字母行打印,怒然他进行数字的打印。
  3. 之后跳转到字母打印行,同样,满足条件先进行数字打印,不然进行字母打印。

字母怎么通过count来转换,因为我们是运用count来实现对整个进程的控制,所以字母也应该受到count的控制,我们利用强制转换类型进行转换。

char a = (char)(count +'A' - 1)

线程循环的执行我们用一下代码实现:

thread s = new thread();
    new Thread(() -> {
        for (int i = 0; i < 26; i++) {
			s.runNum();
			s.runWord();
		}
	}).start();

综合以上,实现代码如下:

class thread {
	private boolean flag = false;
	private int count = 1;
	public synchronized void runNum() {
		try {
			while (flag != false) {

				wait();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.print(2 * count - 1);
		System.out.print(2 * count);
		flag = true;

		notify();
	}

	public synchronized void runWord() {
		try {
			while (flag != true) {

				wait();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.out.print((char) (count + 'A' - 1));
		count++;
		flag = false;
		notify();
	}
}

public class MyThread {
	public static void main(String[] args) {
		thread s = new thread();
		new Thread(() -> {
			for (int i = 0; i < 26; i++) {
				s.runNum();
				s.runWord();
			}
		}).start();
	}
}

输出:

写两个线程,一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B...5152Z 目录 1 题目分析 2 代码实现 3 运行结果 1 题目分析 数字线程的个数是字母线程的2倍 用信号量flag来控制打印的顺序:这里我们假设当flag = 1时打印数字,当flag = 2时打印字母 每轮打印中数字有以下规律:12 34 56 78 ~ 我们不难发现:当我们定义一个计数器count从1计数时,第一组数字为2*count-1、2*count,之后每组数字都遵循这个规律;... 阅读详情

相关推荐

写2个线程,其中一个线程打印1-52,另一个线程打印A-Z,打印顺序应该是12A34B56C...5152Z.

打印数字: package com.sa.thread.练习.练习1; import javax.swing.plaf.synth.SynthViewportUI; /** * Created by 123 on 2018-07-26 */ public class PrintNum extends Thread{ public static boolean flag=true...

qq_20867981的博客 3119

java编写两个线程,一个线程打印1-52的整数,另一个线程打印字母A-Z。打印顺序为12A34B56C….5152Z。即按照整数和字母的顺序从小到大打印,并且每打印两个整数后,打印一个字母,交替

2.编写两个线程,一个线程打印1-52的整数,另一个线程打印字母A-Z。打印顺序为12A34B56C….5152Z。即按照整数和字母的顺序从小到大打印,并且每打印两个整数后,打印一个字母,交替循环打印,直到打印到整数52和字母Z结束。 要求: 1)编写打印类Printer,声明私有属性index,初始值为1,用来表示是第几次打印。 2)在打印类Printer中编写打印数字的方法print(int...

司天宏的博客 5358

多线程-作业练习

1. 写2个线程,其中一个线程打印1\~52,另一个线程打印A\~Z,打印顺序应该是12A34B56C…5152Z。该题需要用到多线程通信的知识。解题思路:首先从最简单的功能着手,先思考如何写一个方法打印1\~52,再写一个方法打印A~Z。打印1~52 的方法方法简单,可以通过一个for循环来解决: for (int i=1 ; i<52; i++) { System.out.print(

oh_mygarden的博客 2283

两个线程循环对一个变量进行加一和减一

import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; class KT { int num = 0; Lock lock = new ReentrantLock(); ...

qq_34787830的博客 2116

启动两个线程,一个线程打印1~52,另一个线程打印A~Z

启动两个线程,一个线程打印1~52,另一个线程打印A~Z

计算机导论期末知识点及试题总结 [近三万字总结 · 全]

计算机网络:计算机网络是利用通信线路连接起来相互独立的计算机的集合,其主要目的是实现数据通信和资源共享。 计算机病毒:破坏计算机功能或数据,影响计算机使用,并能自我复制的一组计算机指令或程序。 操作系统:操作系统是由程序和数据结构组成的大型系统软件,它负责计算机的全部软硬件的资源分配,调度和管理,控制各类程序的正常执行,并为用户使用计算机提供良好的环境。 高速缓冲储存器(Cache):位于cpu和内存之间的储存器,其特点是速度快,目的是是储存器的速度与cpu的速度相匹配。 总线:若干信号线的集合,是

这个人好有趣....hh 1万+

写两个线程,一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B....5152Z

分析: 其中一个线程负责打印数字,另一个线程负责打印字母,但有一个特点就是数字刚好是字母的2倍(字母26,数字52),数字一次打印2个,字母打印一个,并且字母打印线程一定是在数字打印线程之后才打印的。 如何控制字母打印线程一定是在数字打印线程之后,并且数字和字母还是交替出现的? 我们可以考虑用信号量来控制,假若说:当信号量为1的时候告诉打印数组线程执行,当数字是2的时候,让打印字母的线程执行,然后...

Calm的博客 8540

从315MHz到125kHz:手把手教你用Arduino模拟汽车钥匙的RKE/PKE信号(附代码)

本文详细介绍了如何使用Arduino开发板和射频模块模拟汽车钥匙的RKE/PKE信号,包括硬件准备、代码实现和安全机制。通过实践教程,读者可以深入理解315MHz和125kHz信号在汽车电子领域的应用,掌握无钥匙进入系统的核心技术。

weixin_30945039的博客 233

多线程打印:写两个线程,一个线程打印 1~52,另一个线程打印字母A-Z。 打印顺序为12A34B56C……5152Z。

方法1: wait,notify, synchronized package com.hnist.lzn.thread; public class PrintThread { /* 写两个线程,一个线程打印 1~52,另一个线程打印字母A-Z。 打印顺序为12A34B56C……5152Z。 */ static boolean index = true; ...

weixin_39137699的博客 941

Keil调试技巧:3种方法查看Cortex-M4的SCB寄存器(含CPUID内存映射解析)

本文详细介绍了在Keil MDK中查看Cortex-M4内核SCB寄存器的三种实战方法:使用Watch窗口进行符号化观察、通过Memory窗口直接查看物理内存映射,以及利用SFR寄存器浏览器解析位域信息。文章重点解析了CPUID寄存器的内存映射地址(0xE000ED00)及其位域含义,帮助开发者深入理解处理器身份识别与底层调试技巧,提升嵌入式系统调试效率。

h6i7j8的博客 580

相机标定-机器视觉基础(理论推导、Halcon和OpenCV相机标定)

相机标定是获得目标工件精准坐标信息的基础。首先,必须进行相机内参标定,构建一个模型消除图像畸变;其次,需要对相机和机器人的映射关系进行手眼标定,构建一个模型将图像坐标系上的点映射到世界坐标系。主要分为背景知识、相机内外参模型推导、编程代码实现三个部分。

beyond951的博客 7310

写两个线程,一个线程打印 1~52,另一个线程打印字母A-Z。打印顺序为12A34B56C……5152Z。要求用线程间的通信

package temp; class Test {  public static void main(String[] args)  {   Printer p = new Printer();   Thread t1 = new NumberPrinter(p);   Thread t2 = new LetterPrinter(p);   t1.start();   t2

shenbau的专栏 9688

基于STM32F407ZGT6与INMP441的I2S音频采集系统:从配置到实时波形显示

本文详细介绍了基于STM32F407ZGT6与INMP441麦克风模块的I2S音频采集系统设计与实现。从硬件选型、CubeMX配置到音频数据处理和上位机波形显示,全面解析了系统架构、DMA传输优化及常见问题解决方案,帮助开发者快速构建高精度音频采集系统。

weixin_33743661的博客 407

写两个线程,一个线程打印 1~ 52,另一个线程打印A~Z, 打印顺序是12A34B...5152Z;

写两个线程,一个线程打印 1~ 52,另一个线程打印A~Z, 打印顺序是12A34B…5152Z; 第一种方式: class Print{ private int flag = 1; private int count = 1; public synchronized void printNum(){ while(flag != 1){ ...

qq_41420688的博客 5136

手把手教你用HiNet实现图像隐藏:可逆神经网络实战指南(附代码)

本文提供了一份基于HiNet框架实现图像隐藏的实战指南。通过详细解析可逆神经网络原理,手把手指导环境搭建、模型构建、损失函数设计及训练流程,并附有完整代码。该方法利用单个可逆网络统一隐藏与恢复过程,结合小波变换提升隐蔽性,为信息隐藏应用提供了高效解决方案。

rgv234567的博客 437

手把手教你配置MAX96712解串器:从I2C地址分配到PWM帧同步

本文详细解析了MAX96712解串器在自动驾驶视觉链路中的核心配置流程。从I2C地址分配、GMSL2数据流映射到实现多摄像头精准同步的PWM帧同步触发,手把手指导工程师构建高可靠性的图像传输系统,并提供了实用的Linux调试技巧与问题排查思路。

weixin_29297127的博客 944

写两个线程,一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B...5152Z

package www.bit; /*1. 写两个线程,一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B...5152Z*/ class Print{ private int flag = 1; private int count = 1; public synchronized void printNum(){ while(flag!...

family_love_1998的博客 525

写2个线程,其中一个线程打印 1~ 52,另一个线程打印A~Z, 打印顺序应该是12A34B56C···5152Z。

写2个线程,其中一个线程打印 1~ 52,另一个线程打印A~Z, 打印顺序应该是12A34B56C···5152Z。 重入锁方式 package ThreadTest; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent...

cronos_s的博客 564

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

多线程练习题—写两个线程,一个线程打印1-52,另一个线程打印A-Z,打印顺序为12A34B56C......5152Z。...

题目 写两个线程,一个线程打印1-52,另一个线程打印A-Z,打印顺序为12A34B56C......5152Z。要求用线程间的通信。 注:分别给俩个对象构造一个对象O,数字每打印两个或字母每打印一个就执行O.wait(). 代码实现 package 第16章多线程.chapter16_09_ThreadLocal; public class TestT...

Coder_xh的博客 953

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

用java编程:写两个线程,一个线程打印1~ 52,另一个线程打印A~Z,打印顺序是12A34B...5152Z

public class Interpret { // 1和2 打印数字 0 打印字母 private int count = 2; // 0 1 2 private static int num = 1; private static int c = 'A'; public synchronized void printNum() { try { // for循环控制循环次数 for (int i = 1; i <= 52; i++) { // 先判断是否有资格打印数字

dingjiadashaoye的博客 1985

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

写2个线程,其中一个线程打印1~52,另一个线程打印A~Z,打印顺序应该是12A34B56C...5152Z

synchronized和sleep() 这是疯狂讲义多线程上的题目。 我们之前写的多线程,他都是随机分配的,那么如果解决这个,首先带大家了解一下synchronized synchronized概念 synchronized 是 Java 中的关键字,是利用锁的机制来实现同步的。 锁机制有如下两种特性:互斥性和可见性 再这个题目中,我们用到了获取对象锁,在这里我用的是synchronized...

qmqm33的博客 548

写两个线程,一个线程打印1-52,了,另一个线程打印A-Z,要求打印顺序为12A34B56C…5152Z。(线程同步加等待唤醒的协作机制)

写两个线程,一个线程打印1-52,了,另一个线程打印A-Z,要求打印顺序为12A34B56C…5152Z。(线程同步加等待唤醒的协作机制)

xinghai456的博客 683

写2个线程,其中一个线程打印1~52,另一个线程打印A~Z,打印顺序是12A34B56C...5152Z

charThread.java package thread8; public class CharThread extends Thread{ private Print print; public CharThread(Print print) { super(); this.print = print; } @Override public void run() ...

gunsmoke的专栏 345

写两个线程,一个线程打印 1~52,另一个线程打印A~Z, 打印顺序是12A34B...5152Z;

写两个线程,一个线程打印 1-52,另一个线程打印A~Z,打印顺序是12A34B…5152Z;需要用到线程通信我们用flag表示 class Print{ private int flag = 1; // 线程通信标记 private int count = 1; // 打印数字线程 public synchronized void printNum(){ ...

sister的博客 977

两个线程,一个线程打印1~52,另一个线程打印字母A-Z,打印顺序为12A34B56C……5152Z

主要用到的juc 的Condition import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class T { Lock lock = new ReentrantLock(); Condition aa = lock.newCondition(); Co

weixin_40471400的博客 578
上一篇: 【Java--线程】线程的生命周期及线程的几种状态
下一篇: 线程练习||子线程循环2次,主线程循环2次,然后子线程循环2次,主线程循环2次,这样循环10次;
Jock.Liu
博客等级 码龄8年 235粉丝 194原创
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值