@byxiaoxie2周前

01/31
14:44
Home

PUBG Mobile 日服IP列表

添加IP列表代理后进游戏即可切换到正常日服可领活动和日服箱子!

需代理的IP列表:

23.209.32.118
23.55.0.0/16
31.13.0.0/16
49.51.0.0/16
54.219.160.194
54.183.61.55
119.28.0.0/16
120.204.10.204
178.162.0.0/16
183.36.108.31
183.57.48.33
203.205.0.0/16
223.167.86.33

PUBG Mobile 日服IP列表

@byxiaoxie2周前

01/30
14:04
Home

QQ影音播放插件无法下载(解决方法)

百度云盘:https://pan.baidu.com/s/11apHDDy_VgY51FGfVOQVmw   提取码:lzvl

一直卡着无法正常下载

QQ截图20190130140102 QQ影音播放插件无法下载(解决方法)

下载安装后会自动释放文件到QQ的bin目录下,再次点击查看即可正常使用!

释放的出来的文件DLL

avcodec-54bp1.dll
avformat-54bp1.dll
avutil-51bp1.dll
MediaFileEx.dll
swresample-0bp1.dll
swscale-2bp1.dll

QQ截图20190130140102 QQ影音播放插件无法下载(解决方法)

QQ影音播放插件无法下载(解决方法)

@byxiaoxie6月前

08/30
23:26
Home

C# ini配置文件读写

ini.cs 源代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace ini_config
{
    /// <summary>
    /// ini文件类
    /// </summary>
    public class IniFile
    {
        private string m_FileName;

        public string FileName
        {
            get { return m_FileName; }
            set { m_FileName = value; }
        }

        [DllImport("kernel32.dll")]
        private static extern int GetPrivateProfileInt(
            string lpAppName,
            string lpKeyName,
            int nDefault,
            string lpFileName
            );

        [DllImport("kernel32.dll")]
        private static extern int GetPrivateProfileString(
            string lpAppName,
            string lpKeyName,
            string lpDefault,
            StringBuilder lpReturnedString,
            int nSize,
            string lpFileName
            );

        [DllImport("kernel32.dll")]
        private static extern int WritePrivateProfileString(
            string lpAppName,
            string lpKeyName,
            string lpString,
            string lpFileName
            );

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="aFileName">Ini文件路径</param>
        public IniFile(string aFileName)
        {
            this.m_FileName = aFileName;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public IniFile()
        { }

        /// <summary>
        /// [扩展]读Int数值
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="def">默认值</param>
        /// <returns></returns>
        public int ReadInt(string section, string name, int def)
        {
            return GetPrivateProfileInt(section, name, def, this.m_FileName);
        }

        /// <summary>
        /// [扩展]读取string字符串
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="def">默认值</param>
        /// <returns></returns>
        public string ReadString(string section, string name, string def)
        {
            StringBuilder vRetSb = new StringBuilder(2048);
            GetPrivateProfileString(section, name, def, vRetSb, 2048, this.m_FileName);
            return vRetSb.ToString();
        }

        /// <summary>
        /// [扩展]写入Int数值,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="Ival">写入值</param>
        public void WriteInt(string section, string name, int Ival)
        {

            WritePrivateProfileString(section, name, Ival.ToString(), this.m_FileName);
        }

        /// <summary>
        /// [扩展]写入String字符串,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="strVal">写入值</param>
        public void WriteString(string section, string name, string strVal)
        {
            WritePrivateProfileString(section, name, strVal, this.m_FileName);
        }

        /// <summary>
        /// 删除指定的 节
        /// </summary>
        /// <param name="section"></param>
        public void DeleteSection(string section)
        {
            WritePrivateProfileString(section, null, null, this.m_FileName);
        }

        /// <summary>
        /// 删除全部 节
        /// </summary>
        public void DeleteAllSection()
        {
            WritePrivateProfileString(null, null, null, this.m_FileName);
        }

        /// <summary>
        /// 读取指定 节-键 的值
        /// </summary>
        /// <param name="section"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public string IniReadValue(string section, string name)
        {
            StringBuilder strSb = new StringBuilder(256);
            GetPrivateProfileString(section, name, "", strSb, 256, this.m_FileName);
            return strSb.ToString();
        }

        /// <summary>
        /// 写入指定值,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section"></param>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public void IniWriteValue(string section, string name, string value)
        {
            WritePrivateProfileString(section, name, value, this.m_FileName);
        }
    }
}

阅读全文 →

C# ini配置文件读写

@byxiaoxie7月前

08/5
16:00
Home

Python3 取用户目录与判断文件是否存在

源代码:

#!/usr/bin/nev python3
# -*- coding: utf-8 -*-

import os # 先引用 os 模块

user_dir = os.getenv('APPDATA') # 利用 os 模块获取Windows用户 appdata 路径
print(user_dir) # 输出查看路径是否正确

if os.access(user_dir,os.F_OK): # 判断文件是否存在 os.F_OK 用法请看下面
    print("文件存在")
else:
    print("文件不存在")

阅读全文 →

Python3 取用户目录与判断文件是否存在

@byxiaoxie7月前

07/22
16:01
Home

Python3入门爬虫

HTML源代码:

<html xmlns=http://www.w3.org/1999/xhtml>
	<meta http-equiv=Content-Type content="text/html;charset=utf-8">
    <title>爬虫测试</title>
	
    <head>
        <body>
            <h1>任务1:把[P]标签内容利用爬虫全部读取出来.</h1>
            <h2>任务2:把[A]标签连接全部利用爬虫读取出来.</h2>
            <h2>任务3:把[Img]标签图片地址全部读取出来.</h2>
            <h1>任务4:读取完每一个后利用[\n]换行.</h1>
            <hr>
            <p>Test_P_1</p>
            <p>Test_P_2</p>
            <p>Test_P_3</p>
            <p>Test_P_4</p>
            <p>Test_P_5</p>
            <hr>
            <a href="https://baidu.com">连接1_baidu</a>
            <a href="https://byxiaoxie.com">连接2_byxiaoxie</a>
            <a href="http://xz.nicokun.com">连接3_nicokun</a>
            <hr>
            <img src="img_1.jpg" alt="图片1">
            <img src="img_2.jpg" alt="图片2">
            <img src="img_3.jpg" alt="图片3">
        </body>
    </head>
</html>

阅读全文 →

Python3入门爬虫

@byxiaoxie11月前

03/14
10:03
Home

C语言学习(弃坑)

变量类型与输出类型:

int d = 10; //整数型
long ld = 10; //长整型
unsigned ud = 65535 //无符号整型
float f = 1.0; //单精度浮点型
double lf = 1E2; //双精度浮点型
char p = 'C language'; //字符串
char *p = "C language"; //指针字符串

printf("%s\n",p); //字符串输出
printf("%d\n",p); //整数型输出
printf("%f\n",p); //单精度浮点输出
printf("%o\n",p); //八进制输出
printf("%x\n",p); //十六进制输出
printf("%ld\n",p); //长整型输出
printf("%lf\n",p); //双精度浮点输出 
printf("%c\n",p); //字符型输出 
//中文输出
const char text[] = "测试"; 
printf("\n",printf(text));

阅读全文 →

C语言学习(弃坑)

加载中……